Boost logo

Boost :

From: Barco You (barcojie_at_[hidden])
Date: 2007-11-29 21:21:16

Hello ,
I include <boost/regex.hpp> in my program, when compiling I got message:

boost/regex/v4/char_regex_traits.hpp:34: error: wrong number of template
arguments (1, should be 2).

I checked the wrong line in boost/regex/v4/char_regex_traits.hpp ..
template <calss charT>
class char_regex_traits_i : public regex_traits<charT>{};

class char_regex_traits_i<char> : public regex_traits<char>
   typedef char char_type;
   typedef unsigned char uchar_type;
   typedef unsigned int size_type;
   typedef regex_traits<char> base_type;


and then I checked the template regex_traits defined in

template <class charT, class implementationT >
struct regex_traits : public implementationT
   regex_traits() : implementationT() {}

It's really a but, do you thinks so?

what should the implementationT be for char_regex_traits_i in

Who could give some suggession, thanks!

Enjoy life!
Barco You

Boost list run by bdawes at, gregod at, cpdaniel at, john at