Opened 13 years ago

Closed 13 years ago

#3050 closed Patches (duplicate)

boost::blank should observe BOOST_NO_IOSTREAM

Reported by: nstewart@… Owned by: ebf
Milestone: Boost 1.40.0 Component: utility
Version: Boost 1.38.0 Severity: Showstopper
Keywords: BOOST_NO_IOSTREAM, boost::blank, iostream Cc:

Description

We happen to use boost with BOOST_NO_IOSTREAM to minimise standard C++ library dependency. We use boost in combination with STLPort with _STLP_NO_IOSTREAMS=1

boost::blank has some iostreams dependencies, but these can be conditionalized:

17a18

#if !defined(BOOST_NO_IOSTREAM)

19d19 < 20a21,22

#endif BOOST_NO_IOSTREAM

87a90,91

#if !defined(BOOST_NO_IOSTREAM)

97a102,103

#endif BOOST_NO_IOSTREAM

This path is w.r.t 1.38.0, the 1.39.0 version appears to be unchanged.

Attachments (2)

blank.hpp (2.0 KB ) - added by anonymous 13 years ago.
Modified blank.hpp
blank.diff (194 bytes ) - added by anonymous 13 years ago.
blank.hpp diff

Download all attachments as: .zip

Change History (6)

by anonymous, 13 years ago

Attachment: blank.hpp added

Modified blank.hpp

by anonymous, 13 years ago

Attachment: blank.diff added

blank.hpp diff

comment:1 by Marshall Clow, 13 years ago

Owner: changed from No-Maintainer to ebf

comment:2 by Marshall Clow, 13 years ago

This patch applies ok (though it should really be a full SVN diff), and rebuilding doesn't seem to cause any problems. However, there are no test cases for "blank", so I'm not 100% sure that this patch is OK. running the tests for functional (which includes blank) does not show any problems.

comment:3 by Marshall Clow, 13 years ago

Sorry - tested on Mac OS X, gcc 4.0.1

comment:4 by Daniel James, 13 years ago

Resolution: duplicate
Status: newclosed

Marking this as a duplicate of #3051 as boost::blank seems to be a part of Boost.Variant (that there's no indication of this is a bug) and it makes life easier to deal with both at once.

Note: See TracTickets for help on using tickets.