Browse Source

* Revert "Fixed namespace conflict in C++/CLI."

This reverts commit 0fa18a9f62.

Unfortunately MS's C++/CLI compiler seem to have a bug handling operator overloads with global qualified types. Rever this for now until we figure out a workaround.
pull/503/merge
triton 10 years ago
parent
commit
a7c6747e72
  1. 2
      src/Generator/Generators/CLI/CLITypePrinter.cs
  2. 5
      tests/CLITemp/CLITemp.cpp
  3. 10
      tests/CLITemp/CLITemp.h

2
src/Generator/Generators/CLI/CLITypePrinter.cs

@ -327,7 +327,7 @@ namespace CppSharp.Generators.CLI @@ -327,7 +327,7 @@ namespace CppSharp.Generators.CLI
names.Add(decl.Visit(this));
return "::" + string.Join("::", names);
return string.Join("::", names);
}
public string VisitClassDecl(Class @class)

5
tests/CLITemp/CLITemp.cpp

@ -13,9 +13,4 @@ std::string Date::testStdString(std::string s) @@ -13,9 +13,4 @@ std::string Date::testStdString(std::string s)
void testFreeFunction()
{
}
void UseFoo::takesFooPtr(Foo* ptr)
{
}

10
tests/CLITemp/CLITemp.h

@ -48,12 +48,4 @@ std::ostream& operator<<(std::ostream& os, const Date& dt) @@ -48,12 +48,4 @@ std::ostream& operator<<(std::ostream& os, const Date& dt)
return os;
}
DLL_API void testFreeFunction();
class DLL_API Foo { };
class DLL_API UseFoo
{
public:
void takesFooPtr(Foo* ptr);
};
DLL_API void testFreeFunction();
Loading…
Cancel
Save