Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82723 - trunk/libs/math/example
From: pbristow_at_[hidden]
Date: 2013-02-06 20:25:32


Author: pbristow
Date: 2013-02-04 05:12:29 EST (Mon, 04 Feb 2013)
New Revision: 82723
URL: http://svn.boost.org/trac/boost/changeset/82723

Log:
Added 2nd {{ and }} and a comment "for some GCC compiler versions"
Text files modified:
   trunk/libs/math/example/fft_sines_table.cpp | 5 ++---
   trunk/libs/math/example/sines.hpp | 4 ++--
   2 files changed, 4 insertions(+), 5 deletions(-)

Modified: trunk/libs/math/example/fft_sines_table.cpp
==============================================================================
--- trunk/libs/math/example/fft_sines_table.cpp (original)
+++ trunk/libs/math/example/fft_sines_table.cpp 2013-02-04 05:12:29 EST (Mon, 04 Feb 2013)
@@ -28,7 +28,6 @@
 digits of precision is fixed at compile-time via template parameter.
 
 To use these floating-point types and constants, we need some includes:
-
 */
 #include <boost/math/constants/constants.hpp>
 // using boost::math::constants::pi;
@@ -167,7 +166,7 @@
 "#else""\n"
 " static const std::array<double, " << size << "> sines =\n"
 "#endif""\n"
- "{\n";
+ "{{\n"; // 2nd { needed for some GCC compiler versions.
     fout.precision(precision);
 
     for (unsigned int i = 0U; ;)
@@ -175,7 +174,7 @@
       fout << " " << sin_values[i];
       if (i == sin_values.size()-1)
       { // next is last value.
- fout << "\n};\n";
+ fout << "\n}};\n"; // 2nd } needed for some GCC compiler versions.
         break;
       }
       else

Modified: trunk/libs/math/example/sines.hpp
==============================================================================
--- trunk/libs/math/example/sines.hpp (original)
+++ trunk/libs/math/example/sines.hpp 2013-02-04 05:12:29 EST (Mon, 04 Feb 2013)
@@ -20,7 +20,7 @@
 #else
   static const std::array<double, 32> sines =
 #endif
-{
+{{
   1,
   0.70710678118654752440084436210484903928483593768847,
   0.38268343236508977172845998403039886676134456248563,
@@ -53,4 +53,4 @@
   2.9258361585343193579282304690689559020175857150074e-09,
   1.4629180792671596805295321618659637103742615227834e-09,
   7.3145903963357984046044319684941757518633453150407e-10
-};
+}};


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