C++ではグローバルスコープでのusingディレクティブは推奨されていないので
C++/CLIでは必然的に以下のようなコードになる
int main() { System::String^ str = "abc"; System::Collections::Generic::List<int>^ li = gcnew System::Collections::Generic::List<int>(); return 0; }
C++/CLIではグローバルスコープでのusingディレクティブが推奨されているのだろうか?
正直こんな(↑)コード書いてられないです(C#のような強力なインテリセンスもないので)
using namespace System; using namespace System::Collections::Generic; int main() { String^ str = "abc"; List<int>^ li = gcnew List<int>(); return 0; }