Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Create Implementation doesn't add namespace detail

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Greg Posted - Aug 17 2008 : 8:00:12 PM
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.
2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Feb 02 2016 : 7:58:20 PM
case=1247 is fixed in build 2089.
accord Posted - Aug 19 2008 : 2:43:32 PM
I am seeing the same effect here. Thank you for the clear description. I have commented this example to

case=1247

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000