しばらくの間、2008 でコンパイルできるプログラムがありました。cl と Ultimate++ IDE を使用してプログラムをコンパイルできることに注意してください。これはかなり大きなプログラムなので、ここには掲載しません。Studio でコンパイルできません。
エラーは
1>c:\program files\microsoft visual studio 9.0\vc\include\xstring(1735)
: error C2856: #pragma hdrstop cannot be inside an #if block
そこには hdrstop がないので、ばかげているようです。
プリコンパイル済みヘッダーはオフになっています。
これはそこにあるものです:
if (_Mysize < _Off)
_String_base::_Xran(); // _Off off end
if (_Mysize - _Off < _Count)
_Count = _Mysize - _Off;
_Traits_helper::copy_s<_Traits>(_Dest, _Dest_size, _Myptr() + _Off, _Count);
return (_Count);
}
void __CLR_OR_THIS_CALL swap(_Myt& _Right)
{ // exchange contents with _Right <<<<<<<<----------this is the line
if (this == &_Right)
; // same object, do nothing
else if (_Mybase::_Alval == _Right._Alval)
{ // same allocator, swap control information
ありがとう。