
27 May
2008
27 May
'08
12:35 p.m.
Hello,
I have implemented the following template:
template<typename Value>
struct Validator
{
typedef bool result_type;
bool operator()(const std::wstring& newVal)const
{
boost::lexical_cast<typename Value>(newVal);
return true;
}
};
now here is the problem that for pointers the lexical cast doesn't work.
I have now made the following declaration:
boost::lexical_cast