Boost logo

Boost Users :

Subject: Re: [Boost-users] [Serialization] Restoring from text archive compileerror
From: Robert Ramey (ramey_at_[hidden])
Date: 2010-06-25 12:20:50


The error listing contains the following near the top.

/home/dante/pagmo/external_headers/boost/archive/detail/check.hpp:162:
error: invalid application of ‘sizeof’ to incomplete type
‘boost::STATIC_ASSERTION_FAILURE<false>’

This is meant to be a clue as to where the problem is. check.hpp contains
the following at line 162

template<class T>
inline void check_const_loading(){
typedef
BOOST_DEDUCED_TYPENAME mpl::or_<
BOOST_DEDUCED_TYPENAME boost::serialization::is_wrapper<T>,
BOOST_DEDUCED_TYPENAME mpl::not_<
BOOST_DEDUCED_TYPENAME boost::is_const<T>
>
>::type typex;
// cannot load data into a "const" object unless it's a
// wrapper around some other non-const object.
BOOST_STATIC_ASSERT(typex::value);
}

The comment at this point is meant to be another clue.

What other information could be provided to make this easier.

Robert Ramey


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net