From: Martin E. <mar...@li...> - 2003-03-30 23:42:25
|
Hello, > Do you have a (possibly not big) code snippet to reproduce this? I want to > check if I can fix it (I'm working a little on position_iterator), but I > cannot reproduce this. I've modified the boiler plate example program and can reproduce the warning. However, I forgot to mention one important thing in my last mail: I'm using STLport 4.5.3. The problem seems to be related to the iterator_traits class of STLport used by position_iterator, but I didn't investigate any further. The change to the boiler plate sample is straightforward. In main() change the call to the free parse function to this: ... position_iterator<char const*> begin(str.begin(), str.end(), ""); position_iterator<char const*> end; if (parse(begin, end, g, space_p).full) ... You will also have to change my_action a bit to get a successful build, but you'll get the waring anyway. The exact warning I get is this: return type for 'boost::spirit::position_iterator<char const *,struct boost::spirit::file_position>::operator ->' is 'const char *' (ie; not a UDT or reference to a UDT. Will produce errors if applied using infix notation) Best regards, Martin ---------------------------------------------------------------- Visit my pages on the Web: XEngine Project Page: http://xengine.sourceforge.net Adelaide Travel Diary: http://adelaidediary.efftrade.at Private homepage: http://members.liwest.at/GroovingArts MP3.com: http://www.mp3.com/GroovingArts |