|
[Spirit-general] file_iterator needs workaround for VC8
From: MB <mb2act@ya...> - 2006-01-31 07:11
|
|
Hi, I found my post that had been sent to a wrong mailing-list. Well, please look at: Under VC8 Express Edition: #include <functional> #include <boost/spirit/iterator/file_iterator.hpp> // greeting namespace your { struct plus { }; } namespace my { using namespace your; struct A : plus { }; // error C2872: 'plus' : ambiguous symbol } I don't know what happens, but 'using namespace std;' at <iterator/impl/file_iterator.ipp:line41> does something bad. Simplified Code: namespace standard { struct plus { }; } // almost like 'using namespace standard' under vc8? namespace fileiter_impl { // 'using-directive' here using namespace standard; // 'class template' here template< typename CharT > class std_file_iterator { }; } namespace your { struct plus { }; } namespace my { using namespace your; struct A : plus { }; // error C2872: 'plus' : ambiguous symbol } Regards, MB p-stade.sourceforge.net |
| Thread | Author | Date | |
|---|---|---|---|
| [Spirit-general] file_iterator needs workaround for VC8 | MB <mb2act@ya...> |
|
|
|
|
|
|
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use