Commit f0589f98 authored by Davis King's avatar Davis King

Made the BSP routines take their function arguments by value rather

than by reference.
parent bcf274d6
...@@ -293,7 +293,7 @@ namespace dlib ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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,
......
...@@ -120,7 +120,7 @@ namespace dlib ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment