From 76eaef5df257d0f965de8fe06a4b38f5f76e22eb Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 14 Aug 2010 03:33:52 +0000 Subject: [PATCH] Minor changes to avoid compile time errors when using visual studio 10. --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403805 --- examples/server_http_ex.cpp | 2 +- examples/sockets_ex.cpp | 2 +- examples/sockstreambuf_ex.cpp | 2 +- examples/thread_function_ex.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/server_http_ex.cpp b/examples/server_http_ex.cpp index ee50e69b4..4d8845952 100755 --- a/examples/server_http_ex.cpp +++ b/examples/server_http_ex.cpp @@ -122,7 +122,7 @@ int main() // create a thread that will start the server. The ref() here allows us to pass // our_web_server into the threaded function by reference. - thread_function t(thread, ref(our_web_server)); + thread_function t(thread, dlib::ref(our_web_server)); cout << "Press enter to end this program" << endl; cin.get(); diff --git a/examples/sockets_ex.cpp b/examples/sockets_ex.cpp index 87ec5b654..5ca883f50 100755 --- a/examples/sockets_ex.cpp +++ b/examples/sockets_ex.cpp @@ -74,7 +74,7 @@ int main() // create a thread that will start the server. The ref() here allows us to pass // our_server into the threaded function by reference. - thread_function t(thread, ref(our_server)); + thread_function t(thread, dlib::ref(our_server)); cout << "Press enter to end this program" << endl; cin.get(); diff --git a/examples/sockstreambuf_ex.cpp b/examples/sockstreambuf_ex.cpp index 64685f070..2925cba80 100644 --- a/examples/sockstreambuf_ex.cpp +++ b/examples/sockstreambuf_ex.cpp @@ -100,7 +100,7 @@ int main() // create a thread that will start the server. The ref() here allows us to pass // our_server into the threaded function by reference. - thread_function t(thread, ref(our_server)); + thread_function t(thread, dlib::ref(our_server)); cout << "Press enter to end this program" << endl; cin.get(); diff --git a/examples/thread_function_ex.cpp b/examples/thread_function_ex.cpp index 814d7521a..2fa1b5940 100644 --- a/examples/thread_function_ex.cpp +++ b/examples/thread_function_ex.cpp @@ -56,7 +56,7 @@ int main() // to a thread by reference. For example, the thread below adds // one to val. double val = 2; - thread_function t4(thread_increment, ref(val)); + thread_function t4(thread_increment, dlib::ref(val)); t4.wait(); // wait for t4 to finish before printing val. // Print val. It will now have a value of 3. cout << "val: " << val << endl;