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]"
          be defined in the current scope
              struct base_type::id2type // This uses nice VC6.5 and VC7.1

"../../../boost/typeof/msvc/typeof_impl.hpp", line 160: error: incomplete
          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!


View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at