falvaro / seshat

Handwritten math expression parser
GNU General Public License v3.0
678 stars 166 forks source link

Make seshat compile on default options in Ubuntu 18.04 (c++11) #18

Open Narsil opened 6 years ago

Narsil commented 6 years ago

Disambiguate boost::tuple and std::tuple.

On 18.04 default libboost version is 1.65 and g++ is using c++11 and libxerces is 3.2.

This version of libxerces requires c++11 rendering the flag c++98 option useless (if you don't want to recompile).

In this patchset I just added references to force Helper.hpp to use the boost version of tuple (without them, it uses the new std::tuple or gets ambiguous calls).

I also added -fpermissive otherwise the build fails on perturb_weights function.