Adapt to new boost version
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 17 Sep 2010 13:54:33 +0000 (15:54 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 17 Sep 2010 13:54:33 +0000 (15:54 +0200)
configure.in
src/tmpfstream_impl.hpp

index 92ccf37..01b23a5 100644 (file)
@@ -1,7 +1,7 @@
 AC_INIT(configure.in)
 
 AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(libi2ncommon, 1.6)
+AM_INIT_AUTOMAKE(libi2ncommon, 1.7)
 
 LIBI2NCOMMON_LIB_VERSION=2:0:0
 
index dafe706..514369b 100644 (file)
@@ -74,7 +74,7 @@ bool tmpfstreamTempl<Device,Tr,Alloc>::open(const std::string& tmpnametemplate,
     if (fd==-1)
         return false;
 
-    boost::iostreams::stream<Device,Tr,Alloc>::open(Device(fd,true),
+    boost::iostreams::stream<Device,Tr,Alloc>::open(Device(fd, boost::iostreams::close_handle),
                                                     buffer_size,pback_size);
 
     return tmpfstreamTempl<Device,Tr,Alloc>::is_open();