louisdx / cxx-prettyprint

A header-only library for C++(0x) that allows automagic pretty-printing of any container.

Home Page:http://louisdx.github.com/cxx-prettyprint/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prettyprint98.hpp: foward declaration of std names leads to undefined behaviour

bekaus opened this issue · comments

The foward declaration of set and multiset in prettyprint98.hpp leads to undefined behaviour. See the following discussion:
https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.c++.moderated/XBKFjGNquDM

Please remove the forward declarations and just include . I think the impact on compilation speed is negligible, too.

(This is a real world issue since I can't compile prettyprint together with boost/archive due to that.)

That's a very good point. Thanks!