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. 8
      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

@ -14,8 +14,3 @@ void testFreeFunction() @@ -14,8 +14,3 @@ void testFreeFunction()
{
}
void UseFoo::takesFooPtr(Foo* ptr)
{
}

8
tests/CLITemp/CLITemp.h

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