-pedantic and -ansi
Mohsen Pahlevanzadeh
mohsen@pahlevanzadeh.org
Thu Jul 19 06:07:00 GMT 2012
Thank you ,
i migrated to "-ansi -pedantic -std=c++11 -std=c++98"
but get the following warning:
warning: converting from ‘void (NetworkSocket::*)()’ to ‘void*
(*)(void*)’ [-pedantic]
my line is:
if (pthread_create(threadArray, NULL, (void*(*)(void*))
&NetworkSocket::threadTest , this) != 0)
Do you have any idea that i dont prevent to above warning?
--mohsen
On Thu, 2012-07-12 at 17:50 +0100, Jonathan Wakely wrote:
> On 12 July 2012 17:43, Mohsen Pahlevanzadeh wrote:
> > What's replacement of typeof as standard?
>
> decltype, but it's only available in C++11 and -ansi implies -std=c++98
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 316 bytes
Desc: This is a digitally signed message part
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20120719/f40ec20e/attachment.sig>
More information about the Gcc-help
mailing list