mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Minor changes to avoid compile time errors when using visual studio 10.
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403805
This commit is contained in:
parent
675ba8e40d
commit
76eaef5df2
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user