Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71424 - in trunk/libs/geometry/doc/src/examples/geometries: . adapted
From: barend.gehrels_at_[hidden]
Date: 2011-04-22 18:34:43


Author: barendgehrels
Date: 2011-04-22 18:34:43 EDT (Fri, 22 Apr 2011)
New Revision: 71424
URL: http://svn.boost.org/trac/boost/changeset/71424

Log:
Added adapted to jam, fixed boost_array sample for gcc
Text files modified:
   trunk/libs/geometry/doc/src/examples/geometries/Jamfile.v2 | 1 +
   trunk/libs/geometry/doc/src/examples/geometries/adapted/boost_array.cpp | 4 ++--
   2 files changed, 3 insertions(+), 2 deletions(-)

Modified: trunk/libs/geometry/doc/src/examples/geometries/Jamfile.v2
==============================================================================
--- trunk/libs/geometry/doc/src/examples/geometries/Jamfile.v2 (original)
+++ trunk/libs/geometry/doc/src/examples/geometries/Jamfile.v2 2011-04-22 18:34:43 EDT (Fri, 22 Apr 2011)
@@ -15,4 +15,5 @@
 
 exe point : point.cpp ;
 
+build-project adapted ;
 build-project register ;

Modified: trunk/libs/geometry/doc/src/examples/geometries/adapted/boost_array.cpp
==============================================================================
--- trunk/libs/geometry/doc/src/examples/geometries/adapted/boost_array.cpp (original)
+++ trunk/libs/geometry/doc/src/examples/geometries/adapted/boost_array.cpp 2011-04-22 18:34:43 EDT (Fri, 22 Apr 2011)
@@ -16,8 +16,8 @@
 
 int main()
 {
- boost::array<float, 2> a = {1, 2};
- boost::array<double, 2> b = {2, 3};
+ boost::array<float, 2> a = { {1, 2} };
+ boost::array<double, 2> b = { {2, 3} };
     std::cout << boost::geometry::distance(a, b) << std::endl;
     
     boost::geometry::set<0>(a, 1.1);


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