|
Boost : |
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2003-09-17 14:52:52
Robert,
I've found a problem with binary_archive missing archive header information.
The same text_archive starts with: "22 serialization::archive 2 0 0 0 0 24"
where the last 24 is the count of std::strings for a std::set<std::string>
with 24 entries. In the binary_archive there are two NULL bytes before the
24(0x18).
Jeff Flinn
Applied Dynamics, International
"Jeff Flinn" <TriumphSprint2000_at_[hidden]> wrote in message
news:bka99b$cm2$1_at_sea.gmane.org...
> Robert,
>
> I'm successfully text-archiving in one of my projects. Ease of
> implementation and performance are outstanding. I've been able to build
the
> library in release mode successfully as well. Although I'm not able to
> directly archive shared_ptr<>'s. I get the following compilation error
> attempting to compile demo_shared_ptr:
>
> ------ Build started: Project: demo_shared_ptr, Configuration: Debug
> Win32 ------
>
> Compiling...
> demo_shared_ptr.cpp
> c:\boost\boost_1_30_2\boost\serialization\shared_ptr.hpp(79) : error
C2259:
> 'boost::detail::sp_counted_base' : cannot instantiate abstract class
> due to following members:
> 'void boost::detail::sp_counted_base::dispose(void)' : pure
virtual
> function was not defined
> c:\boost\boost_1_30_2\boost\serialization\shared_count.hpp(117) :
> see declaration of 'boost::detail::sp_counted_base::dispose'
> 'void *boost::detail::sp_counted_base::get_deleter(const type_info
> &)' : pure virtual function was not defined
> c:\boost\boost_1_30_2\boost\serialization\shared_count.hpp(126) :
> see declaration of 'boost::detail::sp_counted_base::get_deleter'
> c:\boost\boost_1_30_2\boost\serialization\shared_ptr.hpp(84) : error
C2143:
> syntax error : missing ';' before 'namespace'
>
> demo_shared_ptr - 2 error(s), 0 warning(s)
>
> Any thoughts?
>
> Thanks,
>
> Jeff Flinn
> Applied Dynamics, International
>
>
> "Jeff Flinn" <TriumphSprint2000_at_[hidden]> wrote in message
> news:bk6vmc$tan$1_at_sea.gmane.org...
> > Scott, Robert, ...
> >
> > I had made the same change as Scott(to the latest level.hpp sent by
> Robert)
> > and have fully Compiled and Linked the tests under VC71. I'm off to
apply
> > the library in my current development project. :-) I'll let you know my
> > progress.
> >
> > Robert, thanks for the tremendous effort with this library!
> >
> > PS. Am I allowed to specify this mail list as my reply address? I'm
using
> > gmane and thought this was verbotten. I've gotten the last couple
response
> > directly emailed to me rather than the list.
> >
> > Thanks,
> >
> > Jeff
> >
> >
> >
> > from Scott Grahm
> >
> > Jaap Suter and I had this problem tonight too.
> >
> > Changing the BOOST_STATIC_CONSTANT in boost/serialization/level.hpp(79)
> > from enum level_type to just an int made it go away. Otherwise, value
> > always seems to be 0 for the types we tried.
> >
> > scott
> >
> > -----Original Message-----
> > From: Jeff Flinn [mailto:TriumphSprint2000_at_[hidden]]
> > Sent: September 15, 2003 3:44 PM
> > To: boost_at_[hidden]
> > Subject: [boost] Re: Serialization Draft # 12
> >
> >
> > Robert,
> >
> > "Robert Ramey" <ramey_at_[hidden]> wrote in message
> > news:01C37B64.851AD4A0_at_226-146.adsl2.netlojix.net...
> > > Fellow Boosters,
> > >
> > > I have just loaded Serialization Draft #12 to the files section.
> > >
> > > It incorporates numerous small changes submitted by many
> > > people who have built it on differing platforms. The manual
> > > includes a new section on creating ones own archive formats.
> > >
> > > Status:
> > >
> > > MSVC 7.0 compiles, links and passes all tests.
> > > MSVC 7.1 I have reports of successful compile
> >
> > I get several compilation errors in VC71, for which a snippet is shown
> > below. Any hints on special settings that achieved the successful
> > compile
> > mentioned above? The problems are associated with the binary and text
> > ...archive.cpp files. I get the same results using boost_1_30_2 and
> > today's
> > CVS from boost.org.
> >
> > Thanks,
> >
> > Jeff Flinn
> > Applied Dynamics, International
> >
> > ... cut ...
> > C:\boost\CVS\boost\boost\serialization\iserializer.hpp(176) : error
> > C2975:
> > 'x' : invalid template argument for 'boost::STATIC_ASSERTION_FAILURE',
> > compile-time evaluatable constant expression expected
> > C:\boost\CVS\boost\boost\static_assert.hpp(29) : see declaration
> > of
> > 'x'
> > C:\boost\CVS\boost\boost\serialization\iserializer.hpp(176) : error
> > C2027:
> > use of undefined type 'boost::STATIC_ASSERTION_FAILURE<x>'
> > with
> > [
> > x=false
> > ]
> > C:\boost\CVS\boost\boost\serialization\iserializer.hpp(176) :
> > see
> > reference to class template instantiation
> > 'boost::STATIC_ASSERTION_FAILURE<x>' being compiled
> > with
> > [
> > x=false
> > ]
> > ... cut ...
> >
> >
> >
> >
> > _______________________________________________
> > Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
> >
>
>
>
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk