Implicit typename warning (g++ linux)

  • Thread starter =?windows-1252?Q?=8Aimon_T=F3th?=
  • Start date
?

=?windows-1252?Q?=8Aimon_T=F3th?=

Can anybody tell me how to turn of this warning? -Wno-deprecated doesn't
work. I don't want to edit the source file, because it works fine and
it's a bit hardcore stuff for me :)

warning: implicit typename is deprecated, please see the documentation
for details
 
V

Victor Bazarov

Šimon Tóth said:
Can anybody tell me how to turn of this warning?

Somebody in 'gnu.g++.help' should be able to. This is a _language_
newsgroup, not a "what command-line options to give to my particular
compiler" newsgroup.
-Wno-deprecated doesn't
work. I don't want to edit the source file, because it works fine and
it's a bit hardcore stuff for me :)

warning: implicit typename is deprecated, please see the documentation
for details

Implicit typename is usually about a missing return value type or missing
type in a declaration, like

class A {
static boo;
};

which should probably be

class A {
static int boo;
};

V
 
R

Rolf Magnus

Victor said:
Somebody in 'gnu.g++.help' should be able to. This is a _language_
newsgroup, not a "what command-line options to give to my particular
compiler" newsgroup.


Implicit typename is usually about a missing return value type or missing
type in a declaration, like

class A {
static boo;
};

which should probably be

class A {
static int boo;
};

Nope. The "implicit typename" warning is about template dependant names
where the programmer didn't put the "typename" keyword in a place where
he's supposed to.
 
V

Victor Bazarov

Rolf said:
Victor Bazarov wrote some nonsense
[..]

Nope. The "implicit typename" warning is about template dependant names
where the programmer didn't put the "typename" keyword in a place where
he's supposed to.

Ah, thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top