]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/buffered.cpp
Use the new Handle class to hide platform details from public headers
[libs/core.git] / source / io / buffered.cpp
index 5dbd49463fc2666a39019036c4882231b73b653d..b2d48e660a56f337334db1f2f2decc8dbee96a86 100644 (file)
@@ -1,6 +1,7 @@
 #include <cstring>
 #include <stdexcept>
 #include "buffered.h"
 #include <cstring>
 #include <stdexcept>
 #include "buffered.h"
+#include "handle.h"
 
 using namespace std;
 
 
 using namespace std;
 
@@ -179,7 +180,7 @@ unsigned Buffered::get_current_size() const
        return end-begin;
 }
 
        return end-begin;
 }
 
-Handle Buffered::get_event_handle()
+const Handle &Buffered::get_event_handle()
 {
        throw logic_error("Buffered doesn't support events");
 }
 {
        throw logic_error("Buffered doesn't support events");
 }