
4 Mar
2007
4 Mar
'07
2:34 p.m.
"Kris Braun"
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