Boost logo

Boost :

From: DudeSan (dudesan_at_[hidden])
Date: 2003-06-19 08:26:39


While I was playing around with spirit yesterday, I stumbled on
something nasty. I'm not sure if this is the right place to report this
but I'll post it here anyway :)

I found a calculator example
(http://www.oreillynet.com/network/2003/05/06/examples/calculatorexample
.html) which includes <boost/spirit/phoenix/tuples.hpp> (not directly
but via boost/spirit/phoenix/binders.hpp).

Here I found the first occurrence; it seems that the Visual C++ 6.0
compiler doesn't see the difference between

    template <typename T>
    struct access {

        typedef const T& ctype;
        typedef T& type;
    };

and

    template <typename T>
    struct access<T&> {

        typedef T& ctype;
        typedef T& type;
    };

It reports "template class has already been defined as a non-template
class", so it seems that 'template <typename T> struct access' isn't
being recognized as a template class.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk