Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2007-03-04 09:34:14


"Kris Braun" <kbraun_at_[hidden]> writes:

> Hi there,
>
> I'm using Boost 1.33.1. The following code compiles with MSVC7.1, but
> not with MSVC8:
>
> class Path {
> private:
> typedef std::vector< Path > PathList;
>
> public:
> class iterator : public boost::iterator_adaptor< iterator,
> PathList::const_iterator > {
> ...
> }
>
> MSVC8 gives this error:
> boost/type_traits/is_pod.hpp(34) : error C2139: 'fledge::Path' : an
> undefined class is not allowed as an argument to compiler intrinsic type
> trait '__is_pod'
>
> Any recommendations on a solution?

You might try defining Path::iterator as a class outside of Path, then
if you need the nested type, use a typedef.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net