Topic: [Q]Simplify: foo == fooTClass<double,double>(1,2);


Author: lukner@che.utexas.edu (Ralf B. Lukner)
Date: 1995/08/03
Raw View
Is there a C++ operator that will let me do the following for
template<TNumeric1,TNumeric2> class foo ...

foo == {1,2};   // Just testing for equality.

instead of foo == fooTClass<double,double>(1,2);

If there is, can I also create an operator for foo = {1,2} in a similar manner?

Just wondering,
--Ralf

(Please respond by e-mail)