diff options
author | Josh Blum | 2013-07-10 03:45:10 -0700 |
---|---|---|
committer | Josh Blum | 2013-07-10 03:45:10 -0700 |
commit | f99744a072d97c83f5a7da6c0626a38475c4fc44 (patch) | |
tree | 4647db7866a04f3fe0f97f48d36f6ab24143efe3 /lib | |
parent | 6aea4048b2d69786b862abf049a8ef4382d8dbb1 (diff) | |
download | sandhi-f99744a072d97c83f5a7da6c0626a38475c4fc44.tar.gz sandhi-f99744a072d97c83f5a7da6c0626a38475c4fc44.tar.bz2 sandhi-f99744a072d97c83f5a7da6c0626a38475c4fc44.zip |
gras: ptree to pmc try max width fixed int
long long has pretty bad swig wrapping,
its easier to use fixed width int64s for now.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pmc_to_ptree.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pmc_to_ptree.cpp b/lib/pmc_to_ptree.cpp index f94b5ce..89e5b1e 100644 --- a/lib/pmc_to_ptree.cpp +++ b/lib/pmc_to_ptree.cpp @@ -6,6 +6,7 @@ #include <PMC/Containers.hpp> #include <boost/property_tree/ptree.hpp> #include <boost/foreach.hpp> +#include <boost/cstdint.hpp> #include <vector> #include <complex> @@ -32,7 +33,7 @@ PMCC gras::ptree_to_pmc(const ptree &value) if (value.size() == 0) { //can we cast to integer? - ptree_to_pmc_try(long long) + ptree_to_pmc_try(boost::int64_t) //can we cast to float? ptree_to_pmc_try(double) @@ -46,7 +47,7 @@ PMCC gras::ptree_to_pmc(const ptree &value) //array else { - ptree_to_pmc_tryv(long long); + ptree_to_pmc_tryv(boost::int64_t); ptree_to_pmc_tryv(double); ptree_to_pmc_tryv(std::complex<double>); } |