On 01/30/2011 02:54 PM, Jonathan Wakely wrote:
On 30 January 2011 20:32, Enrico Weigelt wrote:
I'll have to add --std=c++0x parameter - does that have any other
side effects I should be aware of ?
-std=c++0x enables lots of things, but if you don't use e.g. variadic
templates or the decltype keyword you shouldn't notice. The only
thing I can think of affecting valid code is changing the meaning of
the 'auto' keyword, which noone sensible uses anyway.
It can result in a number of deprecation warnings, though, and if you
have -Werror enabled that could be problematic for you. Our project
includes a bunch of headers from a large third-party library that
trigger these warnings, but telling g++ that they are 'system headers'
makes it stop converting them to errors when -Werror is in use, so we've
been able to work around it.
--
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kfleming@xxxxxxxxxx
Check us out at www.digium.com & www.asterisk.org