Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #68521 > unrolled thread

Big problem with templates

Started byjacobnavia <jacob@jacob.remcomp.fr>
First post2015-08-27 23:29 +0200
Last post2015-08-27 16:10 -0700
Articles 2 — 2 participants

Back to article view | Back to comp.lang.c


Contents

  Big problem with templates jacobnavia <jacob@jacob.remcomp.fr> - 2015-08-27 23:29 +0200
    Re: Big problem with templates Keith Thompson <kst-u@mib.org> - 2015-08-27 16:10 -0700

#68521 — Big problem with templates

Fromjacobnavia <jacob@jacob.remcomp.fr>
Date2015-08-27 23:29 +0200
SubjectBig problem with templates
Message-ID<mrnvd2$b9g$1@dont-email.me>
I am trying to maintain a huge C++database application with templates 
all around.

In 2010, tokens and identifiers were resolved at template expansion 
time. Somehow this behaviour changed between 2010 and today and now I am 
getting hundreds of undefined references in those templates.

How can I revert to the good old times?

The compiler that compiled this is gcc-4.4.3, and still does.

The new compiler however will not do that even if I specify -std=c++98

Thanks in advance.

jacob

[toc] | [next] | [standalone]


#68531

FromKeith Thompson <kst-u@mib.org>
Date2015-08-27 16:10 -0700
Message-ID<lnpp28uy3f.fsf@kst-u.example.com>
In reply to#68521
ram@zedat.fu-berlin.de (Stefan Ram) writes:
> jacobnavia <jacob@jacob.remcomp.fr> writes:
>>I am trying to maintain a huge C++database application with templates 
>>all around.
>
>   I suggest that you post this to comp.lang.c++.
>
>   Try to post an SSCCE that will illustrate the problem
>   and allow one to reproduce one such error message.

Agreed.  I also suggest:

] The compiler that compiled this is gcc-4.4.3, and still does.
] 
] The new compiler however will not do that even if I specify -std=c++98

that you identify the new compiler as well as the old one when you post
to comp.lang.c++.  (I'm guessing it's a newer release of gcc.)

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.c


csiph-web