Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Create Implementation doesn't add namespace detail
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Greg
New Member

Australia
6 Posts

Posted - Aug 17 2008 :  8:00:12 PM  Show Profile  Reply with Quote
Hard to find keyword "using" so sorry if this is already raised.

Create Implementation doesn't add namespace detail when "using <namespace>" is used within a C++ body file (.cpp)

for instance if you have the following test.cpp and use Create Implementation on test_this
//foo/baz.h
namespace foo {
namespace bar {
  class baz;
}}

//test.cpp
#include <foo/baz.h>
using namespace foo::bar;
void test::test_this( const baz& _Baz )
{}


The result is this (which is incorrect due to not also using the using clause)
//test.h
#include <foo/baz.h>
class test {
  test();
  ~test();
  void test_this( const baz& _Baz );
}



The DESIRED result is this
//test.h
#include <foo/baz.h>
class test {
  test();
  ~test();
  void test_this( const foo::bar::baz& _Baz );
}



Issue has no urgency to me as I can certainly work around it, it's just been a bit annoying lately.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 19 2008 :  2:43:32 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description. I have commented this example to

case=1247
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Feb 02 2016 :  7:58:20 PM  Show Profile  Reply with Quote
case=1247 is fixed in build 2089.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000