Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59362 - in sandbox/statistics/detail/multi_array/libs/statistics/detail/multi_array: doc example
From: erwann.rogard_at_[hidden]
Date: 2010-01-29 22:58:17


Author: e_r
Date: 2010-01-29 22:58:16 EST (Fri, 29 Jan 2010)
New Revision: 59362
URL: http://svn.boost.org/trac/boost/changeset/59362

Log:
m
Added:
   sandbox/statistics/detail/multi_array/libs/statistics/detail/multi_array/doc/
   sandbox/statistics/detail/multi_array/libs/statistics/detail/multi_array/doc/readme.txt (contents, props changed)
Text files modified:
   sandbox/statistics/detail/multi_array/libs/statistics/detail/multi_array/example/serialize.cpp | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Added: sandbox/statistics/detail/multi_array/libs/statistics/detail/multi_array/doc/readme.txt
==============================================================================
--- (empty file)
+++ sandbox/statistics/detail/multi_array/libs/statistics/detail/multi_array/doc/readme.txt 2010-01-29 22:58:16 EST (Fri, 29 Jan 2010)
@@ -0,0 +1,35 @@
+//////////////////////////////////////////////////////////////////////////////
+// detail::multi_array::doc::readme //
+// //
+// (C) Copyright 2010 Erwann Rogard //
+// Use, modification and distribution are subject to the //
+// Boost Software License, Version 1.0. (See accompanying file //
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
+//////////////////////////////////////////////////////////////////////////////
+
+[ Contact ]
+
+erwann.rogard_at_[hidden]
+
+[ Overview ]
+
+Small extensions to multi_array
+
+[ Platform/Compiler ]
+
+Tested OK January 25, 2010:
+Mac OS X 10.6 gcc 4.2 boost_1_41_0
+Win7-32 V6.1.7100 Dev-C++ 5.0 beta 9.2 with Mingw/GCC 3.4.2 boost_1_41_0
+Win7-32 V6.1.7100 Visual Studio 2010 boost_1_41_0
+
+[ Dependencies ]
+
+boost_1_41_0
+range_ex (in the vault under algorithm)
+
+[ History ]
+
+January 25, 2010: MSVC workaround in /chain/result_of.hpp
+Januray 12, 2010 Added nest_chain
+
+

Modified: sandbox/statistics/detail/multi_array/libs/statistics/detail/multi_array/example/serialize.cpp
==============================================================================
--- sandbox/statistics/detail/multi_array/libs/statistics/detail/multi_array/example/serialize.cpp (original)
+++ sandbox/statistics/detail/multi_array/libs/statistics/detail/multi_array/example/serialize.cpp 2010-01-29 22:58:16 EST (Fri, 29 Jan 2010)
@@ -15,6 +15,7 @@
 #include <boost/multi_array.hpp>
 #include <boost/statistics/detail/multi_array/serialization/serialize.hpp>
 #include <boost/statistics/detail/fusion/serialization/include.hpp>
+
 #include <boost/serialization/serialization.hpp>
 #include <boost/archive/text_oarchive.hpp>
 #include <boost/archive/text_iarchive.hpp>
@@ -23,6 +24,7 @@
 
 void example_multi_array_serialize(std::ostream& os)
 {
+ // This example serializes an array of boost::fusion::map
 
         os << "multi_array_serialize ->" << std::endl;
 
@@ -37,7 +39,7 @@
     typedef std::vector<val_> vec_;
     typedef boost::mpl::int_<0> tag_;
     typedef boost::fusion::result_of::make_map<tag_,val_>::type map_;
- typedef boost::multi_array<val_, 2> array_;
+ typedef boost::multi_array<val_,2> array_;
         typedef boost::multi_array<vec_,2> array_vec_;
     typedef boost::multi_array<map_,2> array_map_;
     typedef boost::array<ma::multi_array_base::index,2> extents_;


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