|
|
在Debian下,编译下面这段代码
#include <iostream>
#include <bitset>
using namespace std;
int main()
{
bitset<32> bitsev(16);
cout << bitsev.to_string() << endl;
return 0;
}
然后提示
test.cpp: In function `int main()':
test.cpp:8: error: no matching function for call to `std::bitset<32>::to_string
()'
但是在Ubuntu 和 SUSE下面都可以编译通过的。并且我查了STL的手册,bitset确实又to_string这个方法的。是不是我少装什么东西了? |
|