Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81465 - trunk/libs/multiprecision/example
From: john_at_[hidden]
Date: 2012-11-21 13:55:40


Author: johnmaddock
Date: 2012-11-21 13:55:39 EST (Wed, 21 Nov 2012)
New Revision: 81465
URL: http://svn.boost.org/trac/boost/changeset/81465

Log:
Fix for non-C++11 compilers.
Text files modified:
   trunk/libs/multiprecision/example/floating_point_examples.cpp | 9 +++++++++
   1 files changed, 9 insertions(+), 0 deletions(-)

Modified: trunk/libs/multiprecision/example/floating_point_examples.cpp
==============================================================================
--- trunk/libs/multiprecision/example/floating_point_examples.cpp (original)
+++ trunk/libs/multiprecision/example/floating_point_examples.cpp 2012-11-21 13:55:39 EST (Wed, 21 Nov 2012)
@@ -8,6 +8,9 @@
 #include <boost/math/special_functions/bessel.hpp>
 #include <iostream>
 #include <iomanip>
+
+#ifndef BOOST_NO_CXX11_HDR_ARRAY
+
 #include <array>
 
 //[AOS1
@@ -685,3 +688,9 @@
 7.0710678118654752440084436210484903928483593768847403658833986900e-01
 7.0710678118654752440084436210484903928483593768847403658833986900e-01
 */
+
+#else
+
+int main() { return 0; }
+
+#endif


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