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? Best wishes. Tim Burgess
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
Many thanks - worked a treat.
Best wishes.
Tim
On 6 Feb 2014, at 16:37, Jason Roehm
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 mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Many thanks - worked a treat. Hmm, doesn't Clang have a compiler intrinsic for is_fundamental? Often Boost doesn't know
On 2/6/2014 11:48 AM, Tim Burgess wrote: that Clang/Xcode has something available — find the relevant configuration test and change the use of has_feature to has_extension (from memory—look it up to be sure of the exact pseudo-macro names).
OK, I'll take a look - thanks. Best wishes. Tim Burgess -----Original Message----- From: Boost-users [mailto:boost-users-bounces@lists.boost.org] On Behalf Of John M. Dlugosz Sent: 06 February 2014 23:54 To: boost-users@lists.boost.org Subject: Re: [Boost-users] lexical_cast: fatal error On 2/6/2014 11:48 AM, Tim Burgess wrote:
Many thanks - worked a treat. Hmm, doesn't Clang have a compiler intrinsic for is_fundamental? Often Boost doesn't know that Clang/Xcode has something available - find the relevant configuration test and change the use of has_feature to has_extension (from memory-look it up to be sure of the exact pseudo-macro names).
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Jason Roehm
-
John M. Dlugosz
-
Tim Burgess