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' issues
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

azdroppy
New Member

Cyprus
8 Posts

Posted - Apr 20 2016 :  8:13:56 PM  Show Profile  Reply with Quote
'Create implementation'

If I have such class (being templated is vital).

namespace a
{
template<typename data_t>
class b
{
public:
void foo();
template<typename src_t>
void makeFoo(src_t&&);
};
}

And then 'Create implementation' for foo() then I get:

namespace a
{
template<typename data_t>
class b
{
public:
void foo();
template<typename src_t>
void makeFoo(src_t&&);
};

template<typename data_t>
void a::b<data_t>::foo()
{

}

}
where 'a::' after void is surplus and I have to delete it manuall to make code look good.

If I 'create implementation' for makeFoo then the created method looks:

template<typename src_t>
void a::b::makeFoo(src_t&&)
{

}
It has only 'inner' template definition of the method and misses 'external' class template.

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Apr 21 2016 :  12:41:51 PM  Show Profile  Reply with Quote
Thank you for the clear code, I am seeing the same effects here.

For the "foo" function, with the namespace being added, this is a known bug:

case=4240

Since this code still compiles, this is not a high priority bug, but I agree, it does not look as nice as it could, and this is a bug.

For the "makeFoo" template function, this is also a known bug, and it is one we are hoping to get to fairly soon:

case=5476

Unfortunately I don't currently have an estimate, but since this is generating invalid code it is clearly important.

zen is the art of being at one with the two'ness
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