14 Jan
2019
14 Jan
'19
8:08 p.m.
AMDG On 1/14/19 12:31 PM, Michael Powell via Boost-users wrote:
I am using Boost.Optional, and, while I do want to "include it in an output", the library which I am doing so has another mechanism to do so.
It doesn't matter that you have another way to handle output. If you get this message, it means that your code is trying to call optional's stream operator, for which you must #include optional_io.hpp.
Translation, for Optional purposes, the following assertion should be a warning, IMO, and not an error:
BOOST_STATIC_ASSERT_MSG(sizeof(CharType) == 0, "If you want to output boost::optional, include header
");
In Christ, Steven Watanabe