Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79806 - trunk/libs/math/test
From: pbristow_at_[hidden]
Date: 2012-07-30 15:53:15


Author: pbristow
Date: 2012-07-30 15:53:14 EDT (Mon, 30 Jul 2012)
New Revision: 79806
URL: http://svn.boost.org/trac/boost/changeset/79806

Log:
Explicit boost::math::policies::domain_error; and pole_error to avoid complaint of duplicate declaration by Intel-Darwin-12. (but unclear where a duplicate declaration actually exists).
Text files modified:
   trunk/libs/math/test/test_students_t.cpp | 53 ++++++++++++++++++++++++---------------
   1 files changed, 33 insertions(+), 20 deletions(-)

Modified: trunk/libs/math/test/test_students_t.cpp
==============================================================================
--- trunk/libs/math/test/test_students_t.cpp (original)
+++ trunk/libs/math/test/test_students_t.cpp 2012-07-30 15:53:14 EDT (Mon, 30 Jul 2012)
@@ -535,30 +535,43 @@
     // Use a new distribution ignore_error_students_t with a custom policy to ignore all errors,
     // and check returned values are as expected.
 
+ /*
+ Sandia-darwin-intel-12.0 - math - test_students_t / intel-darwin-12.0
+
+ ../libs/math/test/test_students_t.cpp(544): error: "domain_error" has already been declared in the current scope
+ using boost::math::policies::domain_error;
+ ^
+
+../libs/math/test/test_students_t.cpp(552): error: "pole_error" has already been declared in the current scope
+ using boost::math::policies::pole_error;
+
+ Unclear where previous declaration is. Does seem to be in student_t.hpp or any included files???
+
+ */
     using boost::math::policies::policy;
   // Types of error whose action can be altered by policies:.
- using boost::math::policies::evaluation_error;
- using boost::math::policies::domain_error;
- using boost::math::policies::overflow_error;
- using boost::math::policies::underflow_error;
- using boost::math::policies::domain_error;
- using boost::math::policies::pole_error;
-
- // Actions on error (in enum error_policy_type):
- using boost::math::policies::errno_on_error;
- using boost::math::policies::ignore_error;
- using boost::math::policies::throw_on_error;
- using boost::math::policies::denorm_error;
- using boost::math::policies::pole_error;
- using boost::math::policies::user_error;
+ //using boost::math::policies::evaluation_error;
+ //using boost::math::policies::domain_error;
+ //using boost::math::policies::overflow_error;
+ //using boost::math::policies::underflow_error;
+ //using boost::math::policies::domain_error;
+ //using boost::math::policies::pole_error;
+
+ //// Actions on error (in enum error_policy_type):
+ //using boost::math::policies::errno_on_error;
+ //using boost::math::policies::ignore_error;
+ //using boost::math::policies::throw_on_error;
+ //using boost::math::policies::denorm_error;
+ //using boost::math::policies::pole_error;
+ //using boost::math::policies::user_error;
 
   typedef policy<
- domain_error<ignore_error>,
- overflow_error<ignore_error>,
- underflow_error<ignore_error>,
- denorm_error<ignore_error>,
- pole_error<ignore_error>,
- evaluation_error<ignore_error>
+ boost::math::policies::domain_error<boost::math::policies::ignore_error>,
+ boost::math::policies::overflow_error<boost::math::policies::ignore_error>,
+ boost::math::policies::underflow_error<boost::math::policies::ignore_error>,
+ boost::math::policies::denorm_error<boost::math::policies::ignore_error>,
+ boost::math::policies::pole_error<boost::math::policies::ignore_error>,
+ boost::math::policies::evaluation_error<boost::math::policies::ignore_error>
> my_ignore_policy;
 
   typedef students_t_distribution<RealType, my_ignore_policy> ignore_error_students_t;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk