Closed Mizuchi closed 10 years ago
prettyprint98.hpp
is not intended for use with C++11. For C++11, use prettyprint.hpp
. I don't plan on putting too much effort in maintaining prettyprint98.hpp
, by the way.
When using the 098 header and my C++ backports library that offers std::begin()
and std::end()
, I get ambiguous calls as well. This is easily solvable adding the above patch but since you say you might not be maintaining the '98 version anymore, I've started a fork that uses my library's backports (the above functions and enable_if
, mostly) and should be able to provide C++11/C++1y and C++03 compatibility in a single header.
Will ping you for interest when I'm done testing.
Could prettyprint have a wrapper header that uses a preprocessor definition to detect the C++ version and include the appropriate header?
I've created a fork that reunites the C++03 and C++11 featureset in a single interface, and will probably add some minor goodies such as the option of distinguishing output for dictionary-like containers. It delegates special casing things like arrays and valarray
(that lacks iterators interface in C++03) to my personal C++ backports library.
Closing this for now unless you have a specific suggestion.
Use clang++ or g++ with
-std=c++11
get an error::Here is a simple patch to fix this: