Opened 15 years ago

Closed 15 years ago

#1662 closed Bugs (fixed)

boost::serialization for boost::optional - missing include

Reported by: anonymous Owned by: Robert Ramey
Milestone: Boost 1.36.0 Component: serialization
Version: Boost 1.34.1 Severity: Problem
Keywords: Cc:

Description

Hi, if I try to srialize an boost::optional object ( with <boost/serialization/optional.hpp> included) I get: /opt/boost/include/boost-1_35/boost/serialization/optional.hpp: In function 'void boost::serialization::save(Archive&, const boost::optional<T>&, unsigned int)': /opt/boost/include/boost-1_35/boost/serialization/optional.hpp:42: error: 'version' was not declared in this scope /opt/boost/include/boost-1_35/boost/serialization/optional.hpp:42: error: expected primary-expression before '>' token /opt/boost/include/boost-1_35/boost/serialization/optional.hpp:42: error: '::value' has not been declared

In file <boost/serialization/optional.hpp> the include of <boost/serialization/version.hpp> is missing.

so long, Oliver

#include <boost/serialization/version.hpp>

Change History (2)

comment:1 by Marshall Clow, 15 years ago

Component: Noneserialization
Owner: set to Robert Ramey

comment:2 by Robert Ramey, 15 years ago

Resolution: fixed
Status: newclosed

fixed in trunk

Note: See TracTickets for help on using tickets.