The boilerplate *.cpp code for a template class looks currently like
func.cpp:
Func::~Func ( ){
}
while it should be
func_improved.cpp:
template <typename T2,typename T>
Func<T2,T>::~Func ( ){
}
where the template class header is
func.h:
template <typename T2,typename T>
// interface
class Func {
// Associations
// Attributes
// Operations
public:
virtual T value ( const T x ) = 0;
virtual Func ( ) = 0;
~Func ( );
};
The attached diff for generate_code_cpp() generates the correct output for
*.cpp files.
I hope you find this useful,
greetings
Cornelius
Nobody/Anonymous
None
None
Public
| Filename | Description | Download |
|---|---|---|
| generate_code_cpp.diff | diff file for improved cpp code generation | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| File Added | 295767: generate_code_cpp.diff | 2008-10-02 14:26 | weigc |