Tokenizer in boost 1.32 adds more requirements on Type template parameter for Tokenizer class
Hello, It seems that the optimization introduced in token_functions.hpp consisting of converting += into assign calls introduced a new requirement on Type : template < typename TokenizerFunc = char_delimiters_separator<char>, typename Iterator = std::string::const_iterator, typename Type = std::string
class tokenizer { //... } In my case, Type is a custom string class that doesn't implement assign, but has operator +=. I want to avoid changing the interface of the string class. Is Tokenizer reasonable in requiring Type to implement assign ? Could assign_or_plus_equal (token_functions.hpp) fall back on += if assign cannot be found ? It currently does so if the iterator is an input iterator, how about expanding it to test Type traits(!) for an assign member ? Ideas ? Thanks! -- Best regards, Sebastien mailto:smartel@real.com
participants (1)
-
Sebastien Martel