スポンサード リンク
Microsoft Visual C++にて以下のソースでコンパイルエラーが発生します:
コンパイルエラーメッセージ:
error C2783: 'std::reverse_iterator<_RanIt> std::operator +(reverse_iterator<_RanIt>::difference_type,const std::reverse_iterator<_RanIt> &)': テンプレート 引数を '_RanIt' に対して減少できませんでしたC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xutility(1280): note: 'std::operator +' の宣言を確認してください
ソース(バグ有り):
//bitset のサンプルコード
//ビットで表現する
#include <iostream>
#include <bitset>
int main()
{ |
ソース(修正済み):
//bitset のサンプルコード
//ビットで表現する
#include <iostream>
#include <bitset>
int main()
{ |
スポンサード リンク