Re: -pedantic and -ansi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux