[Iterator, MSV8] iterator_adaptor fails with undefined class

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? Thanks, Kris --------------------------------------------------------------------- This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

"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
participants (2)
-
David Abrahams
-
Kris Braun