Modify

Ticket #4459 (closed Patches: fixed)

Opened 4 years ago

Last modified 3 years ago

[Optional] Trunk build broken as of 20100721

Reported by: ramon.casellas@… Owned by: fcacciola
Milestone: Boost 1.44.0 Component: optional
Version: Boost 1.44.0 Severity: Showstopper
Keywords: Cc:

Description

May be related to some optional changes or lack of include between graph/Property Tree/XML/GraphML:

In file included from ./boost/property_tree/stream_translator.hpp:17,

from ./boost/property_tree/ptree.hpp:17, from ./boost/property_tree/detail/file_parser_error.hpp:13, from ./boost/property_tree/detail/xml_parser_error.hpp:13, from ./boost/property_tree/detail/xml_parser_utils.hpp:14, from ./boost/graph/graphml.hpp:26, from libs/graph/src/graphml.cpp:17:

./boost/optional/optional_io.hpp: In function ‘std::basic_istream<_CharT, _Traits>& boost::operator>>(std::basic_istream<_CharT, _Traits>&, boost::optional<T>&)’: ./boost/optional/optional_io.hpp:77: error: ‘ios’ has not been declared ./boost/optional/optional_io.hpp:82: error: ‘ios’ has not been declared

Debian GNU/Linux 5.0 2.6.26-2-686 #1 SMP gcc version 4.3.2 (Debian 4.3.2-1.1)

Thanks in advance

R.

Attachments

Change History

comment:1 Changed 4 years ago by jewillco

  • Owner changed from asutton to fcacciola
  • Component changed from graph to optional

Even if it a missing include in BGL that triggered the problem, Boost.Optional is supposed to have all of the necessary includes for its own functions to work.

comment:2 Changed 4 years ago by anonymous

The fix seems trivial and related to optional changes:

Index: boost/optional/optional_io.hpp
===================================================================
--- boost/optional/optional_io.hpp      (revision 64257)
+++ boost/optional/optional_io.hpp      (working copy)
@@ -74,12 +74,12 @@
     else
     {
       if ( d != '-')
-        in.setstate( ios::failbit );
+        in.setstate( std::ios::failbit );

       d = in.get();

       if ( d != '-')
-        in.setstate( ios::failbit );
+        in.setstate( std::ios::failbit );

       v = optional<T>() ;
     }

comment:3 Changed 4 years ago by anonymous

Thanks, patch committed in r64342.

comment:4 Changed 4 years ago by fcacciola

Thank you for the patch! :)

comment:5 Changed 3 years ago by Vicente Botet <vicente.botet@…>

  • Type changed from Bugs to Patches

comment:6 Changed 3 years ago by jewillco

  • Summary changed from [BGL] Trunk build broken as of 20100721 to [Optional] Trunk build broken as of 20100721

comment:7 Changed 3 years ago by andysem

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in [67183].

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.