Boost logo

Boost Users :

Subject: Re: [Boost-users] how to correctly compile and use math module (for gmp) (b1.55 win32)
From: eaj68 (eaj68_at_[hidden])
Date: 2014-05-29 18:54:09


thank you for not answering me, finally after all day of headache I found the
right code:
https://stackoverflow.com/questions/15196953/c-boost-large-number-storage
this is finally working:

#include <iostream>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
#pragma GCC diagnostic ignored "-Wfloat-equal"
#include <boost/multiprecision/cpp_int.hpp>
#pragma GCC diagnostic pop
using namespace boost::multiprecision;
int main() {
  cpp_int integer("314159265358979323846264338327950288419716");
  integer *= 2;
  std::cout << integer << std::endl;
}

--
View this message in context: http://boost.2283326.n4.nabble.com/how-to-correctly-compile-and-use-math-module-for-gmp-b1-55-win32-tp4663011p4663025.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net