Boost logo

Boost :

Subject: [boost] [typeof] MSVC errors on PGI?
From: lcaminiti (lorcaminiti_at_[hidden])
Date: 2012-03-23 11:40:49


Hello all,

I'm getting compiler errors when using Boost.Typeof on PGI (plus these
errors seems to be from Boost.Typeof for MSVC?). It's the first time I try
to use PGI... what am I doing wrong?

// File: 01.cpp
#include <boost/typeof/typeof.hpp>

int main() {
    int x = 0;
    BOOST_TYPEOF(x) y = x;
    return y;
}

$ pgcpp -I ../../.. 01.cpp

"../../../boost/typeof/msvc/typeof_impl.hpp", line 150: error: class
          "boost::type_of::msvc_extract_type<ID>::id2type [with ID=ID]"
cannot
          be defined in the current scope
              struct base_type::id2type // This uses nice VC6.5 and VC7.1
bugfeature
                     ^

"../../../boost/typeof/msvc/typeof_impl.hpp", line 160: error: incomplete
type
          is not allowed
              typedef typename id2type::type type;
                               ^
          detected during instantiation of class
                    "boost::type_of::msvc_typeid_wrapper<ID> [with ID=5]" at
                    line 6 of "01.cpp"

2 errors detected in the compilation of "01.cpp".

BTW, I'm trying to use PGI to get ScopeExit regression tests to all pass on
this compiler. PGI users-- any help is welcome!

--Lorenzo

--
View this message in context: http://boost.2283326.n4.nabble.com/boost-typeof-MSVC-errors-on-PGI-tp4499216p4499216.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

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