[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-kdoc
Subject: bug report: partial specialisation of template
From: Pierre Aubert <paubert () pcmath03 ! insa-lyon ! fr>
Date: 1999-06-30 9:43:11
[Download RAW message or body]
Hello,
I try to use kdoc for my C++ code: the partial specialisation and the
generic case are mixed up.
Thank you for your help.
P.S.: I try to add MathML support for kdoc ...
Example follow:
/**
* Fad<A,O> stand for Forward Automatic Differentiation.
*
*
* @author Pierre Aubert
* @see A voir
* @version 1.12
*/
template <typename A,unsigned int O>
class Fad {
public:
/**
* default constructor
*/
Fad(value_t const v=value_t(0)) {assert(0==1);}
/**
* constructor with size and value
*/
Fad( unsigned short const sz, value_t const v=value_t(0)) {assert(0==1);}
/**
* copy constructor
*/
Fad( this_t const& rhs ) {assert(0==1);}
/**
* destructor
*/
~Fad() {}
};
/**
* Fad<A,1> stand for Forward Automatic Differentiation, first order
* partial specialisation
*
* @author Pierre Aubert
* @see A voir
* @version 1.24
*/
template <typename A>
class Fad<A,1> {
public:
/**
* default constructor
*/
Fad(value_t const v=value_t(0)) {assert(0==1);}
/**
* constructor with size and value
*/
Fad( unsigned short const sz, value_t const v=value_t(0)) {assert(0==1);}
/**
* copy constructor
*/
Fad( this_t const& rhs ) {assert(0==1);}
/**
* destructor
*/
~Fad() {}
};
/**
* Expression Template
*/
template <class T_expr>
class Expr {
public:
/**
* default constructor
*/
Expr(T_expr const& e) : my_e(e);
private:
/// private data
T_expr const my_e;
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic