Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49517 - sandbox/math_toolkit/libs/math/example
From: pbristow_at_[hidden]
Date: 2008-11-01 10:34:11


Author: pbristow
Date: 2008-11-01 10:34:11 EDT (Sat, 01 Nov 2008)
New Revision: 49517
URL: http://svn.boost.org/trac/boost/changeset/49517

Log:
Added warning in fusion suppression and comments.
Text files modified:
   sandbox/math_toolkit/libs/math/example/find_location_example.cpp | 12 ++++++++----
   1 files changed, 8 insertions(+), 4 deletions(-)

Modified: sandbox/math_toolkit/libs/math/example/find_location_example.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/example/find_location_example.cpp (original)
+++ sandbox/math_toolkit/libs/math/example/find_location_example.cpp 2008-11-01 10:34:11 EDT (Sat, 01 Nov 2008)
@@ -1,6 +1,6 @@
 // find_location.cpp
 
-// Copyright Paul A. Bristow 2007.
+// Copyright Paul A. Bristow 2008.
 
 // Use, modification and distribution are subject to the
 // Boost Software License, Version 1.0.
@@ -13,6 +13,10 @@
 // Note that this file contains Quickbook mark-up as well as code
 // and comments, don't change any of the special comment mark-ups!
 
+#ifdef _MSC_VER
+# pragma warning(disable: 4180) // qualifier has no effect (in fusion).
+#endif
+
 //[find_location1
 /*`
 First we need some includes to access the normal distribution,
@@ -24,7 +28,9 @@
 #include <boost/math/distributions/cauchy.hpp> // for cauchy_distribution
   using boost::math::cauchy; // typedef provides default type is double.
 #include <boost/math/distributions/find_location.hpp>
- using boost::math::find_location;
+ using boost::math::find_location; // for mean
+#include <boost/math/distributions/find_scale.hpp>
+ using boost::math::find_scale; // for standard devation
   using boost::math::complement; // Needed if you want to use the complement version.
   using boost::math::policies::policy;
 
@@ -152,8 +158,6 @@
   return 0;
 } // int main()
 
-
-
 //[find_location_example_output
 /*`
 [pre


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