$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [Serialization] How to serialize third partylibraryfunction
From: Robert Ramey (ramey_at_[hidden])
Date: 2009-12-08 11:40:57
The issue here is the new type_trait and it's usage "has_new_operator".  This is a recent addition which likely requires some more fine tuning.  There is a track item on this in either the the serialization and/or type_traits libraries.  For now this is a pending issue - patches welcome.
Robert Ramey
  "elizabeta petreska" <elizabeta.petreska_at_[hidden]> wrote in message news:ff8898bd0912080051p2fde1bc1t8db88e8b89ab5c05_at_mail.gmail.com...
  Hello
  I am using Visual C++ 8.0 , and can't compile it :(
  Can someone else check if the above is compiling with Visual Studio 2005
  Thanks
  On Mon, Dec 7, 2009 at 10:01 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
    AMDG
    elizabeta petreska wrote:
      OK, I know installed the latest version of boost, which uses
      has_new_operator type trait.
      But , know I am getting  compiler errors , for this minimal test program :
      #include <boost/type_traits/has_new_operator.hpp>
      class A {
      public:
         void* operator new(std::size_t);
         void* operator new[] (size_t);
         void* operator new(std::size_t, void*);
      };
      int main()
      {
         boost::has_new_operator<A>();
      }
      The compiler errors are :
      Error 1:
       error C2975: 'b1' : invalid template argument for
      'boost::type_traits::ice_or', expected compile-time constant expression
      \libs\boost\inc\boost-1_41\boost\type_traits\has_new_operator.hpp    100
       
    What compile are you using?
    The code compiles fine for me with Visual C++ 8.0 and 9.0.
    In Christ,
    Steven Watanabe
    _______________________________________________
    Boost-users mailing list
    Boost-users_at_[hidden]
    http://listarchives.boost.org/mailman/listinfo.cgi/boost-users
------------------------------------------------------------------------------
  _______________________________________________
  Boost-users mailing list
  Boost-users_at_[hidden]
  http://listarchives.boost.org/mailman/listinfo.cgi/boost-users