🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #1475

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

#1475
From: Ralf B. Lukner
Date: Fri, 04 Aug 1995 04:40
13 lines
744 bytes
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)
Technical Details
Message-ID: <lukner-0308952240160001@bingham.che.utexas.edu>
Path: arc1-ca.pugleaf.net!bingham.che.utexas.edu!user

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!bingham.che.utexas.edu!user
From: lukner@che.utexas.edu (Ralf B. Lukner)
Newsgroups: comp.std.c++,comp.lang.c++
Subject: [Q]Simplify: foo == fooTClass<double,double>(1,2);
Date: Thu, 03 Aug 1995 22:40:16 -0600
Organization: University of Texas at Austin Chemical Engineering
Message-ID: <lukner-0308952240160001@bingham.che.utexas.edu>
NNTP-Posting-Host: bingham.che.utexas.edu