From: magrasjc@texas.net
Subject: Help w/ templated sub-classes
Date: 1997/08/04 [thread overview]
Message-ID: <33E69610.1B1F@texas.net> (raw)
Greetings everyone,
I am trying to get the following code to compile on a g++ 2.7.2.2
and libg++ 2.7.2 on DEC UNIX 3.2... but I cant discern what the
external function defintion's header should look like...
Thanks in advance for your help,
J.C. Magras
#include <function> // yields unary_function template
***** given this generic template
template<class Protocol,class Result>
class jack:pubic unary_function<Protocol, Result>
{
public:
Result& jack<Protocol&>::operator(Protocol&){};
};
***** given this template specialization
template<class pTCPIP,class pTCPIP>
class jack<pTCPIP,pTCPIP>:public unary_function<Protocol,Result>
{
friend class pTCPIP;
public:
Result& jack<Protocol>::operator()( Protocol &) ;
};
************
what is the function signature/header for:
pTCPIP& jack :: operator() (pTCPIP & e) { } ?
--
Unix Software Engineer looking for C++/UNIX/Motif/Perl/Tk/Flex
Software Engineering position **NOW**. Currently in Austin at
(512) 672-5778/magrasjc@texas.net. have Answering machine.
next reply other threads:[~1997-08-04 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-08-04 4:00 magrasjc [this message]
1997-08-14 4:00 ` Help w/ templated sub-classes Martin G. Jones
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox