C++11

Markus Wanner <[email protected]>
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <[email protected]>
Hi,

as you may have realized, I'm considering using C++11 for monotone. A
relevant forerunner for that is botan, which already switched to C++11
in its 1.11 development branch. For monotone, there are two branches I'm
played with:

  net.venge.monotone.optional-cxx11: enables C++11 features on
      compilers supporting it. Doesn't change anything for
      compilers that do not provide C++11.

  net.venge.monotone.mandatory-cxx11: mandates C++11 and won't
      compile anymore on compilers that don't provide C++11.


Obviously, the former offers little benefit: We could possibly add minor
#ifdef'd optimizations. For example using perfect forwarding and move
constructors to avoid some copying if C++11 is used.

The latter seems much more interesting, but is a much heftier change as
well. Before I proceed with that branch, I'd like to get some feedback
and opinions.

The most obvious drawback is higher requirements on compilers and
standard libraries. However, it seems realistic to be able to support
gcc-4.6 and clang-3.3 and newer. (Maybe even older clang, but I didn't try.)

Is anybody opposed to raising these? Are you fine with landing these
branches and start to use C++11?

Regards

Markus Wanner

_______________________________________________
Monotone-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/monotone-devel
signature.asc (application/pgp-signature, 242 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEAREDAAYFAlNxJlEACgkQsPwMloDjyo+xTwCeIniQu+2//hIPXXXXgOCb/+rW
tTMAninXWzat+8iDUz1nt4UVIoJ5I8xl
=TjBf
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.