Message: TestEm7 failed with boost library (solved) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback TestEm7 failed with boost library (solved) 

Forum: Documentation and Examples
Date: 17 Jul, 2015
From: Alexey Solovyev <Alexey Solovyev>

Noticed today, that TestEm7 itself and programs using G4ScreenedNuclearRecoil from this example are failing to build if you are using boost library. c2_function.hh and c2_function.ihh failed to compile. Fortunatelly, substitution of "std::numeric_limits<float_type>::max()" and "std::numeric_limits<float_type>::min()" to their boost analogs "boost::math::tools::max_value<float_type>()" and "boost::math::tools::min_value<float_type>()" (with #include <boost/math/tools/precision.hpp>) fixes this. I'm not sure why it happens, seems that boost library overrides default definitions at <limits>, but this post is just FYI if someone also encountered this issue.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Idea: Re: TestEm7 failed with boost library (solved)   (Vladimir Ivanchenko - 17 Jul, 2015)
(_ None: Re: TestEm7 failed with boost library (solved)   (Alexey Solovyev - 17 Jul, 2015)
 Add Message Add Message
to: "TestEm7 failed with boost library (solved)"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]