Re: [Boost-bugs] [Boost C++ Libraries] #9619: Deserialization of deep object tree fails on VS2012 when a templated function is called in the same cpp file

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9619: Deserialization of deep object tree fails on VS2012 when a templated function is called in the same cpp file
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-02 08:52:18


#9619: Deserialization of deep object tree fails on VS2012 when a templated
function is called in the same cpp file
--------------------------------------------+---------------------------
  Reporter: Yodan Tauber <yodan.tauber@…> | Owner: ramey
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.55.0 | Severity: Problem
Resolution: invalid | Keywords:
--------------------------------------------+---------------------------

Comment (by Yodan Tauber <yodan.tauber@…>):

 Replying to [comment:2 ramey]:
> Typically something like this occurs when templates are nested "too
 deep". Try using the compiler switch to increase template depth to 256
 levels. I forget what the template switch name is - you'll have to look
 it up. You can also look a the bjam files for tests and build. Respond
 here if the problem can be fixed this way.

 Unfortunately there is no such switch in MSVC. As far as I can understand,
 bjam's "c++-template-depth" argument is not used when building with MSVC.

 Anyway, how is it that an object tree just 5 levels deep is deep enough to
 hit the compiler limit when Boost serialization is used?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9619#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC