Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60979 - sandbox/xint/libs/xint/example
From: pbristow_at_[hidden]
Date: 2010-03-31 13:25:40


Author: pbristow
Date: 2010-03-31 13:25:39 EDT (Wed, 31 Mar 2010)
New Revision: 60979
URL: http://svn.boost.org/trac/boost/changeset/60979

Log:
working simple example.
Text files modified:
   sandbox/xint/libs/xint/example/xint_simple.cpp | 22 +++++++++++-----------
   1 files changed, 11 insertions(+), 11 deletions(-)

Modified: sandbox/xint/libs/xint/example/xint_simple.cpp
==============================================================================
--- sandbox/xint/libs/xint/example/xint_simple.cpp (original)
+++ sandbox/xint/libs/xint/example/xint_simple.cpp 2010-03-31 13:25:39 EDT (Wed, 31 Mar 2010)
@@ -15,13 +15,13 @@
 
 #include <boost/xint/xint.hpp>
 
-//#include <iostream>
-//using std::cout;
-//using std::endl;
-//#include <iomanip>
-//using std::setprecision;
-//using std::setw;
-//#include <limits>
+#include <iostream>
+using std::cout;
+using std::endl;
+#include <iomanip>
+using std::setprecision;
+using std::setw;
+#include <limits>
 
 int main()
 {
@@ -29,16 +29,16 @@
   //using namespace boost::xint
 
   //using namespace xint;
- //using xint::integer;
+ using xint::integer;
 
 //[xint_simple_snippet_1
 
   xint::integer a;
- //integer b = 3;
+ integer b = 3;
 
- //integer c = a + b;
+ integer c = a + b;
 
- //cout << a << ", b = " << b << ", a + b = " << a + b << endl;
+ cout << a << ", b = " << b << ", a + b = " << c << endl;
 
 //] [xint_simple_snippet_1]
       return 0;


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