[gmx-developers] C++11 in master

Roland Schulz roland at utk.edu
Tue Apr 3 18:29:44 CEST 2012


Hi,

what is the policy for C++11 features in master? Is it OK as long as it
available in our actively supported compilers, and is a feature which is
not complicated and makes the code easier (simple C++ idea)?

Specific I'm asking about:
- auto (type interference for initialization, simplifies code especially
with iterators)
- std::array (fixed size array. Not the overhead of vector but the safety)
- std::tuple
- cstdint/cinttypes (mentioned at open question at
http://www.gromacs.org/index.php?title=Developer_Zone/Programming_Guide/Allowed_C%2B%2B_Features
)

These are supported by GCC (>=4.4), Intel and MSVC. Also all but auto are
in tr1 and thus also available in boost in case a compiler would not
support it.

See also http://wiki.apache.org/stdcxx/C%2B%2B0xCompilerSupport and
http://blog.indi.frih.net/2011/09/what-parts-of-c11-can-i-use-today/

Roland

-- 
ORNL/UT Center for Molecular Biophysics cmb.ornl.gov
865-241-1537, ORNL PO BOX 2008 MS6309
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20120403/375020c6/attachment.html>


More information about the gromacs.org_gmx-developers mailing list