From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18300 invoked by alias); 20 Jul 2005 15:36:48 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 17790 invoked by uid 22791); 20 Jul 2005 15:36:24 -0000 Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.200) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 20 Jul 2005 15:36:24 +0000 Received: by wproxy.gmail.com with SMTP id i28so1467682wra for ; Wed, 20 Jul 2005 08:36:23 -0700 (PDT) Received: by 10.54.5.61 with SMTP id 61mr125094wre; Wed, 20 Jul 2005 08:35:41 -0700 (PDT) Received: by 10.54.72.9 with HTTP; Wed, 20 Jul 2005 08:35:41 -0700 (PDT) Message-ID: <2e393d08050720083520b33f82@mail.gmail.com> Date: Wed, 20 Jul 2005 15:36:00 -0000 From: corey taylor Reply-To: corey taylor To: Michael Gatford Subject: Re: too few template-parameter-lists Cc: gcc help In-Reply-To: <42DE64C2.1020605@aprsmartlogik.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <42DE64C2.1020605@aprsmartlogik.com> X-SW-Source: 2005-07/txt/msg00204.txt.bz2 Michael, How is mapTags declared? corey On 7/20/05, Michael Gatford wrote: > Hi, >=20 > The following compiles ok with egcs-2.91.66 on Solaris (5.6/7/8), with > gcc2.95.3 on Redhat 8.0 and VS6 on Windows, but not with GCC 4.0.0 on > Fedora Core 4. >=20 > The following is defined in a header file >=20 > // Structure mapping a command name to a function to be > // called, within a class-based context. > template struct commandTags { > char* name; > void (X::*func)(); > }; >=20 > which is included by a program in which it is used like, e.g. >=20 > commandTags mapTags::mustags[] =3D { > { "page.include", &FmPage::includeFile }, > { "page.version", &FmPage::printVersion }, > { "page.script_name", &FmPage::printScriptname }, > { "page.gif_dir", &FmPage::printGifdir }, >=20 > ........ > ........ > } >=20 > This generates the error "too few template-parameter-lists". >=20 > Mike >=20 > -- > ___________________________________________________ > Michael Gatford > Senior Technical Consultant > ___________________________________________________ > APR Smartlogik Limited. > Rustat House - Clifton Road - Cambridge - CB1 7EJ > phone +44 (0)1223 27 1025 > fax +44 (0)1223 27 1010 > map: http://www.aprsmartlogik.com/contact/CambridgeMap.pdf >=20 > mailto:michael.gatford@aprsmartlogik.com > http://www.aprsmartlogik.com/ >=20 > *********************************************************************** > This e-mail may contain proprietary and confidential > information and is intended for the recipient(s) only. > If an addressing or transmission error has misdirected this > e-mail, please notify the systems administrator by forwarding > this e-mail to mailto:postmaster@aprsmartlogik.com. > If you are not the intended recipient(s) disclosure, distribution, > copying or printing of this e-mail is strictly prohibited. > *********************************************************************** >=20 >