From af323ef531d9d3029f6f24530a61364aa2ced49b Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Tue, 11 Aug 2015 20:39:47 +0200 Subject: [PATCH] add namespaces to create linker errors --- Incubator.cpp | 7 +++++++ mockup.cpp | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/Incubator.cpp b/Incubator.cpp index e6e9f3e..8de093e 100644 --- a/Incubator.cpp +++ b/Incubator.cpp @@ -39,6 +39,9 @@ #include +namespace incubator +{ + enum SpellCastResult { SPELL_FAILED_SUCCESS = 0, @@ -714,6 +717,10 @@ void test_cross_forward() ++i; } +} // namespace incubator + +using namespace incubator; + void test_incubator() { test_cross_forward(); diff --git a/mockup.cpp b/mockup.cpp index 1738a7f..dd837e1 100644 --- a/mockup.cpp +++ b/mockup.cpp @@ -20,6 +20,10 @@ #include #include + +namespace mockup +{ + template struct Continuable; @@ -172,6 +176,10 @@ void final_mockup() }); } +}// namespace mockup + +using namespace mockup; + void test_mockup() { create_continuable_mockup();