libnonius / nonius

A C++ micro-benchmarking framework
https://nonius.io
Creative Commons Zero v1.0 Universal
358 stars 47 forks source link

Remove boost variant #23

Closed gnzlbg closed 9 years ago

gnzlbg commented 9 years ago

Replace's boost::variant with a std::function removing the dependency on Boost.Variant.

Caveat: using a std::shared_ptr is not the same as using an std::unique_ptr but the overhead is on construction only. Since std::function requires CopyConstructible, this is the simplest thing I found that works.

I also updated the header of some examples again to include nonius_single.h++ since they were missing the main function.

rmartinho commented 9 years ago

I merged this manually.