kjohansen
June 9th, 2009, 05:17 PM
EDIT:When I break this down into a small test it seems to work, so it must be some other part of the code I am working on....
I came across:http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlcpp8l.doc/language/ref/default_args_for_templ_params.htm
but this does not appear to be standard compliant and work with g++. Is there a way to do something like:
[php]
template <class A=int, class B=int>
class Alpha {};
...
Alpha < > instance1; //this would be like Alpha<int, int>
Alpha <float,float> instance2;
[\php]
in g++?
I came across:http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlcpp8l.doc/language/ref/default_args_for_templ_params.htm
but this does not appear to be standard compliant and work with g++. Is there a way to do something like:
[php]
template <class A=int, class B=int>
class Alpha {};
...
Alpha < > instance1; //this would be like Alpha<int, int>
Alpha <float,float> instance2;
[\php]
in g++?