
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
--- At Mon, 20 Dec 2004 17:21:11 -0500, Ryan Wilcox wrote:
I would like to use boost::serialize for one of my projects, using Codewarrior 8.3 (going to CW 9 may or may not be in the picture), on Mac OS X (10.3.x)
I reproduced this error with the following Simplest Sample That Will (for me) Fail To Compile. <code> #include <fstream> #include <boost/archive/text_iarchive.hpp> #include <ios> #include <vector> int main() { std::ifstream in( "vectfname", (std::ios_base::openmode)0 ); boost::archive::text_iarchive dataSource(in); std::vector<int> is; dataSource >> boost::serialization::make_nvp("avector", is); } </code> Same message, "reproducible" 14 line example. Part of the error message (the beginning and the end) are still inline (although just a copy from the OP, it is 999.95% the same as what I get when I try to compile this sample. Notes: #1: text_iarchive and binary_iarchive both fail #2: text_oarchive and binary_oarchive both work. And again, I got these same errors with the samples/tests for serialize, (and the above sample is pretty braindead anyway)... Codewarrior project files available upon request. Are there any great thoughts on this from the gallery? Thanks so much, _Ryan Wilcox ================================================================ Wilcox Development Solutions: <http://www.wilcoxd.com> Toolsmiths for the Internet Age PGP: 0x2F4E9C31 [snip]
Error : illegal use of abstract class ('boost::archive::detail::basic_iserializer::load_object_data(boost: :archive::detail::basic_iarchive &, void *, const unsigned int) const') ~ (point of instantiation: 'test_main(int, char **)')
[snip]
: :load_override<A>(A &, int)') ~ (instantiating: 'boost::archive::load<boost::archive::binary_iarchive, A>(boost::archive::binary_iarchive &, A &)') ~ (instantiating: 'boost::archive::detail::load_non_pointer_type<boost::archive: :binary_iarchive, A>::invoke(boost::archive::binary_iarchive &, A &)') ~ (instantiating: 'boost::archive::detail::load_non_pointer_type<boost::archive: :binary_iarchive, A>::load::invoke(boost::archive::binary_iarchive &, A &)') ~ (instantiating: 'boost::archive::detail::iserializer<boost::archive::binary_iarchive, A>::instantiate()') iserializer.hpp line 142 static iserializer instance;
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFByOVVbYO0qC9OnDERAs6EAKCLwr7lmlKgyYsGsZYZyFxKzPvbHACgtfEc p1MjKBEkNA6y6gR7Tx/kZ+U= =2AJW -----END PGP SIGNATURE-----