Boost logo

Boost Users :

From: Ryan Wilcox (ryanwilcox_at_[hidden])
Date: 2004-12-21 22:44:43


On 12/21/04, at 10:09 PM, Ryan Wilcox said:

>-----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.

[snip]

>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.

Oh wait, no it's not. Same result, differnt path, the header and the footer of the error message are the same, but the body is slighly different. It Might Be Useful to folk, so I've included it again. (somewhat sorry if I violated list policy here)

See below:

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: 'main()')
  (instantiating: 'boost::archive::detail::interface_iarchive<boost::archive::text_iarchive>::operator>><boost::serialization::nvp<std::vector<int, std::allocator<int>>>>(const boost::serialization::nvp<std::vector<int, std::allocator<int>>> &)')
   (instantiating: 'boost::archive::text_iarchive_impl<boost::archive::text_iarchive>::load_override<boost::serialization::nvp<std::vector<int, std::allocator<int>>>>(boost::serialization::nvp<std::vector<int, std::allocator<int>>> &, int)')
    (instantiating: 'boost::archive::basic_text_iarchive<boost::archive::text_iarchive>::load_override<boost::serialization::nvp<std::vector<int, std::allocator<int>>>>(boost::serialization::nvp<std::vector<int, std::allocator<int>>> &, int)')
     (instantiating: 'boost::archive::load<boost::archive::text_iarchive, boost::serialization::nvp<std::vector<int, std::allocator<int>>>>(boost::archive::text_iarchive &, boost::serialization::nvp<std::vector<int, std::allocator<int>>> &)')
      (instantiating: 'boost::archive::detail::load_non_pointer_type<boost::archive::text_iarchive, boost::serialization::nvp<std::vector<int, std::allocator<int>>>>::invoke(boost::archive::text_iarchive &, boost::serialization::nvp<std::vector<int, std::allocator<int>>> &)')
       (instantiating: 'boost::archive::detail::load_non_pointer_type<boost::archive::text_iarchive, boost::serialization::nvp<std::vector<int, std::allocator<int>>>>::load_only::invoke(boost::archive::text_iarchive &, boost::serialization::nvp<std::vector<int, std::allocator<int>>> &)')
        (instantiating: 'boost::serialization::serialize_adl<boost::archive::text_iarchive, boost::serialization::nvp<std::vector<int, std::allocator<int>>>>(boost::archive::text_iarchive &, boost::serialization::nvp<std::vector<int, std::allocator<int>>> &, const unsigned int)')
         (instantiating: 'boost::serialization::serialize<boost::archive::text_iarchive, boost::serialization::nvp<std::vector<int, std::allocator<int>>>>(boost::archive::text_iarchive &, boost::serialization::nvp<std::vector<int, std::allocator<int>>> &, const unsigned int)')
          (instantiating: 'boost::serialization::access::serialize<boost::archive::text_iarchive, boost::serialization::nvp<std::vector<int, std::allocator<int>>>>(boost::archive::text_iarchive &, boost::serialization::nvp<std::vector<int, std::allocator<int>>> &, const unsigned int)')
           (instantiating: 'boost::serialization::nvp<std::vector<int, std::allocator<int>>>::serialize<boost::archive::text_iarchive>(boost::archive::text_iarchive &, const unsigned int) const')
            (instantiating: 'boost::archive::detail::interface_iarchive<boost::archive::text_iarchive>::operator&<std::vector<int, std::allocator<int>>>(std::vector<int, std::allocator<int>> &)')
             (instantiating: 'boost::archive::text_iarchive_impl<boost::archive::text_iarchive>::load_override<std::vector<int, std::allocator<int>>>(std::vector<int, std::allocator<int>> &, int)')
              (instantiating: 'boost::archive::basic_text_iarchive<boost::archive::text_iarchive>::load_override<std::vector<int, std::allocator<int>>>(std::vector<int, std::allocator<int>> &, int)')
               (instantiating: 'boost::archive::load<boost::archive::text_iarchive, std::vector<int, std::allocator<int>>>(boost::archive::text_iarchive &, std::vector<int, std::allocator<int>> &)')
                (instantiating: 'boost::archive::detail::load_non_pointer_type<boost::archive::text_iarchive, std::vector<int, std::allocator<int>>>::invoke(boost::archive::text_iarchive &, std::vector<int, std::allocator<int>> &)')
                 (instantiating: 'boost::archive::detail::load_non_pointer_type<boost::archive::text_iarchive, std::vector<int, std::allocator<int>>>::load::invoke(boost::archive::text_iarchive &, std::vector<int, std::allocator<int>> &)')
                  (instantiating: 'boost::archive::detail::iserializer<boost::archive::text_iarchive, std::vector<int, std::allocator<int>>>::instantiate()')
iserializer.hpp line 142 static iserializer instance();

Thanks,
_Ryan Wilcox


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