|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65190 - trunk/libs/math/example
From: pbristow_at_[hidden]
Date: 2010-09-02 07:17:45
Author: pbristow
Date: 2010-09-02 07:17:43 EDT (Thu, 02 Sep 2010)
New Revision: 65190
URL: http://svn.boost.org/trac/boost/changeset/65190
Log:
included #include <stdexcept> instead of <exception> to try to define std::domain_error reported missing by Darwin 4.2.1 and others.
Text files modified:
trunk/libs/math/example/policy_ref_snip13.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/libs/math/example/policy_ref_snip13.cpp
==============================================================================
--- trunk/libs/math/example/policy_ref_snip13.cpp (original)
+++ trunk/libs/math/example/policy_ref_snip13.cpp 2010-09-02 07:17:43 EDT (Thu, 02 Sep 2010)
@@ -14,7 +14,7 @@
#include <iostream>
using std::cout; using std::endl;
-#include <exception>
+#include <stdexcept>
using std::domain_error;
//[policy_ref_snip13
@@ -52,7 +52,7 @@
{
double d = mean(myspace::cauchy()); // Cauchy does not have a mean!
}
- catch(const domain_error& e)
+ catch(const std::domain_error& e)
{
cout << e.what() << endl;
}
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