[PySide] [Q/Contribution] Is C++11 allowed in PySide/Shiboken codebase?
Neil Hodgson
nyamatongwe at me.com
Wed May 13 00:15:58 CEST 2015
On 11 May 2015, سليمان السهمي wrote:
> Is C++11 allowed in PySide/Shiboken codebase?
On Windows, standard Python distributions build with particular compilers: Python 2.7 with MSVC 2008, Python 3.4 with MSVC 2010. Python 3.5 will likely use MSVC 2015. Many elements of C++11 are not available with MSVC 2008 and 2010. It is possible to build your own Python interpreter with a newer version of MSVC but that won’t import extensions compiled with a different compiler.
PySide must be built with the same compiler as the Python interpreter it is to be used with. If it is intended that PySide can be used with the standard Python distributions then it is constrained to only those C++11 features supported by MSVC 2008. Or MSVC 2010 if Python 2.7 support is dropped.
There are several online tables comparing the C++11 support of different compilers. Here are some comparisons of MSVC versions:
http://blogs.msdn.com/b/vcblog/archive/2011/09/12/10209291.aspx
http://blogs.msdn.com/b/vcblog/archive/2010/04/06/c-0x-core-language-features-in-vc10-the-table.aspx <http://blogs.msdn.com/b/vcblog/archive/2010/04/06/c-0x-core-language-features-in-vc10-the-table.aspx>
Neil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20150513/ac6ffaba/attachment.html>
More information about the PySide
mailing list