473,400 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

Implicit typename warning (g++ linux)

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
Jul 23 '05 #1
3 1876
Šimon Tóth wrote:
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
Jul 23 '05 #2
Victor Bazarov wrote:
Å*imon Tóth wrote:
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;
};


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.

Jul 23 '05 #3
Rolf Magnus wrote:
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!
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steve Hill | last post by:
Hi, When compiling under g++ (version 3.2) the following code fragement gives me a warning: steve@khan:~/tmp> /opt/bin/g++ -o state_test state_test.cpp state_test.cpp:42: warning: `typename...
1
by: Marcin Kalicinski | last post by:
Hi, The following code template<class Type> class Base::List: public std::list<Type> { public: explicit List(size_type count): std::list<Type>(count) { } // this is line 14 /*...*/
11
by: Johan | last post by:
Hi Can somebody explain to me why I get this warning message and how I can solve this warning message. Thanks a lot Johan In member function `void
1
by: Christophe Poucet | last post by:
Hellom I have an issue with implicit conversions. Apparently when one calls an operator on a class Y which has a conversion operator to class X which has the operator . Sadly it will not do...
1
by: lutorm | last post by:
Hi all, I'm working on migrating my code from KCC to gcc, and I'm having some issues with "implicit typename" warnings from gcc. Essentially, what happens is described by this example: ...
1
by: pmatos | last post by:
Hi all, I'm starting to use templates and I just got a weird error which I was able to simplify into this code: #include <vector> using std::vector; template<class T> class foo {
3
by: Generic Usenet Account | last post by:
This is a two-part question. (1) I have implemented a "Datastructure Registry" template class. I am getting no compiler warnings with older compilers, but newer compilers are generating the...
8
by: xuatla | last post by:
Hi, When I compile the following test code I got a warning about implicit typename. This happens in the member functions. Do you know the detail reason and solution? Thanks. - X ----------
82
by: robert bristow-johnson | last post by:
here is a post i put out (using Google Groups) that got dropped by google: i am using gcc as so: $ gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.