|
Boost Users : |
Subject: Re: [Boost-users] lexical_cast: fatal error
From: Jason Roehm (jasonr_at_[hidden])
Date: 2014-02-06 11:37:47
On 02/06/2014 11:33 AM, Tim Burgess wrote:
> Hi,
>
> Using 1.55.0 in my Xcode project with clang as the compiler I'm getting:
>
> "/boost/type_traits/is_fundamental.hpp:26:20: fatal error: recursive
> template instantiation exceeded maximum depth of
> 128"::boost::is_arithmetic<T>::value
>
> This error is triggered by me including lexical_cast.hpp. Has anybody else
> encountered this and, if so, found a solution, please?
Try increasing the maximum template instantiation depth, as described here:
http://trac.macports.org/ticket/40634
In short, add the "-ftemplate-depth-1024" flag to your list of compiler
flags.
Jason
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