Opened 15 years ago

Closed 15 years ago

#1593 closed Bugs (fixed)

[intrprocess] 'streamoff' : is not a member of 'std'

Reported by: faridz@… Owned by: Ion Gaztañaga
Milestone: Boost 1.35.0 Component: interprocess
Version: Boost Development Trunk Severity: Showstopper
Keywords: Cc: Ion Gaztañaga

Description

The ​stdcxx is the another implementation of the STL (initially based on RogueWave STL).

The following errors are encountered when running boost regression tests on msvc with stdcxx-4.2.0.

file_mapping_test.cpp
..\libs\interprocess\test\file_mapping_test.cpp(31) : error C2039: 'streamoff' : is not a member of 'std'
..\libs\interprocess\test\file_mapping_test.cpp(31) : error C2061: syntax error : identifier 'streamoff'

The proposed patch:

Index: libs/interprocess/test/file_mapping_test.cpp
===================================================================
--- libs/interprocess/test/file_mapping_test.cpp	(revision 42908)
+++ libs/interprocess/test/file_mapping_test.cpp	(working copy)
@@ -9,6 +9,7 @@
 //////////////////////////////////////////////////////////////////////////////
 
 #include <boost/interprocess/detail/config_begin.hpp>
+#include <ios>       // for std::streamoff
 #include <fstream>
 #include <iostream>
 #include <boost/interprocess/file_mapping.hpp>

Change History (1)

comment:1 by Ion Gaztañaga, 15 years ago

Resolution: → fixed
Status: new → closed

Applied proposed patch in revision 42931.

Note: See TracTickets for help on using tickets.