
Does boost have a spec (document) where it mentions which new language features in C++11 are permitted to be used in new libraries? -Sid Sacek

On Tue, Sep 13, 2011 at 2:48 PM, Sid Sacek <ssacek@securewatch24.com> wrote:
Does boost have a spec (document) where it mentions which new language features in C++11 are permitted to be used in new libraries?
No, because the answer is that any C++11 feature can be used in new libraries, and in old libraries too. The critical issue is support for compilers that don't supply a particular shinny new feature. Today most Boost developers are trying to support all compilers that (except for export) are C++03 compliant. A howl would likely go up from reviewers if someone submitted a library that didn't work on C++03 compilers. Even that isn't absolute. If a library's sole purpose was to support or ease the use of some C++11 feature, then it might well not work on compilers that don't supply that feature. Boost has a bunch of feature macros in the config library to identify which compilers have various C++11 features. HTH, --Beman

Thanks, I understand. -Sid -----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Beman Dawes Sent: Tuesday, September 13, 2011 3:33 PM To: boost@lists.boost.org Subject: Re: [boost] [C++11 Feature List] On Tue, Sep 13, 2011 at 2:48 PM, Sid Sacek <ssacek@securewatch24.com> wrote:
Does boost have a spec (document) where it mentions which new language features in C++11 are permitted to be used in new libraries?
No, because the answer is that any C++11 feature can be used in new libraries, and in old libraries too. The critical issue is support for compilers that don't supply a particular shinny new feature. Today most Boost developers are trying to support all compilers that (except for export) are C++03 compliant. A howl would likely go up from reviewers if someone submitted a library that didn't work on C++03 compilers. Even that isn't absolute. If a library's sole purpose was to support or ease the use of some C++11 feature, then it might well not work on compilers that don't supply that feature. Boost has a bunch of feature macros in the config library to identify which compilers have various C++11 features. HTH, --Beman
participants (2)
-
Beman Dawes
-
Sid Sacek