Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bitset::to_string errors with .NET 2003

Status
Not open for further replies.

mayomayo

Programmer
Sep 23, 2004
1
US
i'm having problems calling bitset::to_string() function using Visual C++ .NET 2003. This problem did not exist with VC++ 6.

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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top