|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-06-23 06:42:23
"John Torjo" <john.lists_at_[hidden]> writes:
> When creating the STATIC_CONSTANTs, was "|" what was meant, or was "||"
> meant to be there, like this:
> BOOST_STATIC_CONSTANT(
> bool, is_input_or_output_iter
> =
> (boost::is_convertible<Category*,std::input_iterator_tag*>::value
> ||
> boost::is_convertible<Category*,std::output_iterator_tag*>::value));
The former; some compilers have problems with ||, believe it or not.
Fortunately, the sandbox iterator adaptors, which will replace the
existing one shortly, usess MPL and avoids most of these issues.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk