i'm having problems calling bitset::to_string() function using Visual C++ .NET 2003. This problem did not exist with VC++ 6.
i get the following errors calling to_string():
error C2783: 'std::basic_string<_Elem,_Traits,_Ax> std::bitset<_Bits>::to_string(void) const' : could not deduce template argument for '_Elem'
error C2783: 'std::basic_string<_Elem,_Traits,_Ax> std::bitset<_Bits>::to_string(void) const' : could not deduce template argument for '_Tr'
error C2783: 'std::basic_string<_Elem,_Traits,_Ax> std::bitset<_Bits>::to_string(void) const' : could not deduce template argument for '_Alloc'
THIS version works fine:
any ideas? thanks!
Code:
std::bitset<NUM> selFilter;
// ....
temp = selFilter.to_string();
i get the following errors calling to_string():
error C2783: 'std::basic_string<_Elem,_Traits,_Ax> std::bitset<_Bits>::to_string(void) const' : could not deduce template argument for '_Elem'
error C2783: 'std::basic_string<_Elem,_Traits,_Ax> std::bitset<_Bits>::to_string(void) const' : could not deduce template argument for '_Tr'
error C2783: 'std::basic_string<_Elem,_Traits,_Ax> std::bitset<_Bits>::to_string(void) const' : could not deduce template argument for '_Alloc'
THIS version works fine:
Code:
m_detailSelPreference3 = selFilter.template to_string<char, char_traits<char>, allocator<char> >();
any ideas? thanks!