Made the BSP routines take their function arguments by value rather

than by reference.
This commit is contained in:
Davis King 2012-10-13 19:29:05 -04:00
parent bcf274d6ac
commit f0589f985e
2 changed files with 30 additions and 30 deletions

View File

@ -293,7 +293,7 @@ namespace dlib
> >
friend void bsp_connect ( friend void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts, const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct funct_type funct
); );
template < template <
@ -302,7 +302,7 @@ namespace dlib
> >
friend void bsp_connect ( friend void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts, const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type funct,
ARG1 arg1 ARG1 arg1
); );
@ -313,7 +313,7 @@ namespace dlib
> >
friend void bsp_connect ( friend void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts, const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2 ARG2 arg2
); );
@ -326,7 +326,7 @@ namespace dlib
> >
friend void bsp_connect ( friend void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts, const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2,
ARG3 arg3 ARG3 arg3
@ -341,7 +341,7 @@ namespace dlib
> >
friend void bsp_connect ( friend void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts, const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2,
ARG3 arg3, ARG3 arg3,
@ -355,7 +355,7 @@ namespace dlib
> >
friend void bsp_listen ( friend void bsp_listen (
unsigned short listening_port, unsigned short listening_port,
funct_type& funct funct_type funct
); );
template < template <
@ -364,7 +364,7 @@ namespace dlib
> >
friend void bsp_listen ( friend void bsp_listen (
unsigned short listening_port, unsigned short listening_port,
funct_type& funct, funct_type funct,
ARG1 arg1 ARG1 arg1
); );
@ -375,7 +375,7 @@ namespace dlib
> >
friend void bsp_listen ( friend void bsp_listen (
unsigned short listening_port, unsigned short listening_port,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2 ARG2 arg2
); );
@ -388,7 +388,7 @@ namespace dlib
> >
friend void bsp_listen ( friend void bsp_listen (
unsigned short listening_port, unsigned short listening_port,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2,
ARG3 arg3 ARG3 arg3
@ -403,7 +403,7 @@ namespace dlib
> >
friend void bsp_listen ( friend void bsp_listen (
unsigned short listening_port, unsigned short listening_port,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2,
ARG3 arg3, ARG3 arg3,
@ -423,7 +423,7 @@ namespace dlib
> >
void bsp_connect ( void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts, const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct funct_type funct
) )
{ {
impl1::map_id_to_con cons; impl1::map_id_to_con cons;
@ -443,7 +443,7 @@ namespace dlib
> >
void bsp_connect ( void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts, const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type funct,
ARG1 arg1 ARG1 arg1
) )
{ {
@ -465,7 +465,7 @@ namespace dlib
> >
void bsp_connect ( void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts, const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2 ARG2 arg2
) )
@ -489,7 +489,7 @@ namespace dlib
> >
void bsp_connect ( void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts, const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2,
ARG3 arg3 ARG3 arg3
@ -515,7 +515,7 @@ namespace dlib
> >
void bsp_connect ( void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts, const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2,
ARG3 arg3, ARG3 arg3,
@ -540,7 +540,7 @@ namespace dlib
> >
void bsp_listen ( void bsp_listen (
unsigned short listening_port, unsigned short listening_port,
funct_type& funct funct_type funct
) )
{ {
impl1::map_id_to_con cons; impl1::map_id_to_con cons;
@ -559,7 +559,7 @@ namespace dlib
> >
void bsp_listen ( void bsp_listen (
unsigned short listening_port, unsigned short listening_port,
funct_type& funct, funct_type funct,
ARG1 arg1 ARG1 arg1
) )
{ {
@ -580,7 +580,7 @@ namespace dlib
> >
void bsp_listen ( void bsp_listen (
unsigned short listening_port, unsigned short listening_port,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2 ARG2 arg2
) )
@ -603,7 +603,7 @@ namespace dlib
> >
void bsp_listen ( void bsp_listen (
unsigned short listening_port, unsigned short listening_port,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2,
ARG3 arg3 ARG3 arg3
@ -628,7 +628,7 @@ namespace dlib
> >
void bsp_listen ( void bsp_listen (
unsigned short listening_port, unsigned short listening_port,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2,
ARG3 arg3, ARG3 arg3,

View File

@ -120,7 +120,7 @@ namespace dlib
> >
void bsp_connect ( void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts, const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct funct_type funct
); );
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
@ -131,7 +131,7 @@ namespace dlib
> >
void bsp_connect ( void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts, const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type funct,
ARG1 arg1 ARG1 arg1
); );
@ -144,7 +144,7 @@ namespace dlib
> >
void bsp_connect ( void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts, const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2 ARG2 arg2
); );
@ -159,7 +159,7 @@ namespace dlib
> >
void bsp_connect ( void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts, const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2,
ARG3 arg3 ARG3 arg3
@ -176,7 +176,7 @@ namespace dlib
> >
void bsp_connect ( void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts, const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2,
ARG3 arg3, ARG3 arg3,
@ -191,7 +191,7 @@ namespace dlib
> >
void bsp_listen ( void bsp_listen (
unsigned short listening_port, unsigned short listening_port,
funct_type& funct funct_type funct
); );
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
@ -202,7 +202,7 @@ namespace dlib
> >
void bsp_listen ( void bsp_listen (
unsigned short listening_port, unsigned short listening_port,
funct_type& funct, funct_type funct,
ARG1 arg1 ARG1 arg1
); );
@ -215,7 +215,7 @@ namespace dlib
> >
void bsp_listen ( void bsp_listen (
unsigned short listening_port, unsigned short listening_port,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2 ARG2 arg2
); );
@ -230,7 +230,7 @@ namespace dlib
> >
void bsp_listen ( void bsp_listen (
unsigned short listening_port, unsigned short listening_port,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2,
ARG3 arg3 ARG3 arg3
@ -247,7 +247,7 @@ namespace dlib
> >
void bsp_listen ( void bsp_listen (
unsigned short listening_port, unsigned short listening_port,
funct_type& funct, funct_type funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2,
ARG3 arg3, ARG3 arg3,