diff --git a/examples/pipe_ex.cpp b/examples/pipe_ex.cpp index 86dacdd8f..80c3530ee 100644 --- a/examples/pipe_ex.cpp +++ b/examples/pipe_ex.cpp @@ -115,7 +115,7 @@ public: // There are only two requirements on the type of objects you can use in a // pipe, first they must have a default constructor and second they must // be swappable by a global swap(). - dlib::pipe::kernel_1a job_pipe; + dlib::pipe job_pipe; private: void thread () diff --git a/examples/pipe_ex_2.cpp b/examples/pipe_ex_2.cpp index 07b8a24f8..97de6dccf 100644 --- a/examples/pipe_ex_2.cpp +++ b/examples/pipe_ex_2.cpp @@ -48,9 +48,6 @@ typedef type_safe_union tsu_type; */ -// And here we have a typedef for the pipe we will be using -typedef dlib::pipe::kernel_1a pipe_type; - // ---------------------------------------------------------------------------------------- class pipe_example : private threaded_object @@ -81,7 +78,7 @@ public: } // Here we declare our pipe object. It will contain our messages. - pipe_type message_pipe; + dlib::pipe message_pipe; private: