Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / math / example / arcsine_example.cpp
index 7a27fb4..a007052 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <iostream>
 #include <exception>
+#include <boost/assert.hpp>
 
 int main()
 {
@@ -62,8 +63,8 @@ int main()
   using boost::math::arcsine_distribution;
 
   arcsine_distribution<> as(2, 5); // Cconstructs a double arcsine distribution.
-  assert(as.x_min() == 2.);  // as.x_min() returns 2.
-  assert(as.x_max() == 5.);   // as.x_max()  returns 5.
+  BOOST_ASSERT(as.x_min() == 2.);  // as.x_min() returns 2.
+  BOOST_ASSERT(as.x_max() == 5.);   // as.x_max()  returns 5.
 //] [/arcsine_snip_8]
 }
     return 0;