|
Boost : |
From: Stuart Dootson (stuart.dootson_at_[hidden])
Date: 2005-04-15 04:57:26
On 4/14/05, Sebastian Pfützner <s.pfuetzner_at_[hidden]> wrote:
> Hello,
> is the following code correct?
>
> #include <boost/logic/tribool.hpp>
>
> using namespace boost;
> using namespace boost::logic;
>
> int main()
> {
> tribool tb;
> tribool &rtb = tb;
>
> rtb = indeterminate;
> }
>
> My Visual C++ Compiler 7.1 says "INTERNAL COMPILER ERROR".
> If i comment out "using namespace boost;" everything works fine...
>
> --
> Sebastian Pfützner
> s.pfuetzner_at_[hidden]
> ICQ-ID: 39965036
>
Might be because in tribool.hpp, there's this code
namespace boost {
using logic::tribool;
using logic::indeterminate;
}
I've seen VC7.1 struggle with namespace issues like this. However,
this means you don't need the using boost::logic, so there's a
workaround :-)
Stuart Dootson
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk