Use of deprecated macros in Boost

In Boost 1.50, we (Boost) marked a bunch of macros as "deprecated" In Boost 1.51, we deprecated a bunch more - replaced them with new, shiny macros. I've been working with many of you (library maintainers) to remove all the uses of deprecated macros in Boost, and we've been almost completely successful .. on the trunk. We're a week away from the freezing of the release branch for the 1.53 release, and I'd like to make sure that all those macro changes get merged over to the release branch. http://www.boost.org/development/ I will be happy to help - just let me know. Thanks in advance! -- Marshall

In Boost 1.50, we (Boost) marked a bunch of macros as "deprecated" In Boost 1.51, we deprecated a bunch more - replaced them with new, shiny macros.
I've been working with many of you (library maintainers) to remove all the uses of deprecated macros in Boost, and we've been almost completely successful .. on the trunk.
We're a week away from the freezing of the release branch for the 1.53 release, and I'd like to make sure that all those macro changes get merged over to the release branch. http://www.boost.org/development/
I will be happy to help - just let me know.
Thanks in advance!
Is there a list of macros to replace? Regards Hartmut --------------- http://boost-spirit.com http://stellar.cct.lsu.edu

\On Dec 12, 2012, at 6:44 AM, Hartmut Kaiser <hartmut.kaiser@gmail.com> wrote:
In Boost 1.50, we (Boost) marked a bunch of macros as "deprecated" In Boost 1.51, we deprecated a bunch more - replaced them with new, shiny macros.
I've been working with many of you (library maintainers) to remove all the uses of deprecated macros in Boost, and we've been almost completely successful .. on the trunk.
We're a week away from the freezing of the release branch for the 1.53 release, and I'd like to make sure that all those macro changes get merged over to the release branch. http://www.boost.org/development/
I will be happy to help - just let me know.
Thanks in advance!
Is there a list of macros to replace?
There's a full list at: http://www.boost.org/doc/libs/1_52_0/libs/config/doc/html/boost_config/boost... -- Marshall Marshall Clow Idio Software <mailto:mclow.lists@gmail.com> A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait). -- Yu Suzuki

Marshall Clow wrote:
There's a full list at: http://www.boost.org/doc/libs/1_52_0/libs/config/doc/html/boost_config/boost...
This list doesn't appear to be complete; it's missing, for example, BOOST_HAS_RVALUE_REFS.

On Dec 12, 2012, at 8:17 AM, Peter Dimov <lists@pdimov.com> wrote:
Marshall Clow wrote:
There's a full list at: http://www.boost.org/doc/libs/1_52_0/libs/config/doc/html/boost_config/boost...
This list doesn't appear to be complete; it's missing, for example, BOOST_HAS_RVALUE_REFS.
I haven't touched any of the BOOST_HAS macros - they should be unchanged. However, I just added BOOST_HAS_RVALUE_REFS to the docs. (r 81878) In an ideal world, I think that macro should be named BOOST_HAS_CXX11_RVALUE_REFERENCES or (even better) !defined(BOOST_NO_CXX11_RVALUE_REFERENCES), but not today. Thanks for the heads up, Peter. -- Marshall Marshall Clow Idio Software <mailto:mclow.lists@gmail.com> A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait). -- Yu Suzuki

Marshall Clow wrote:
On Dec 12, 2012, at 8:17 AM, Peter Dimov <lists@pdimov.com> wrote:
Marshall Clow wrote:
There's a full list at: http://www.boost.org/doc/libs/1_52_0/libs/config/doc/html/boost_config/boost...
This list doesn't appear to be complete; it's missing, for example, BOOST_HAS_RVALUE_REFS.
I haven't touched any of the BOOST_HAS macros - they should be unchanged.
However, I just added BOOST_HAS_RVALUE_REFS to the docs. (r 81878)
In an ideal world, I think that macro should be named BOOST_HAS_CXX11_RVALUE_REFERENCES or (even better) !defined(BOOST_NO_CXX11_RVALUE_REFERENCES), but not today.
There are two more such macros, as far as I can see: BOOST_HAS_STATIC_ASSERT and BOOST_HAS_VARIADIC_TMPL.

Marshall Clow wrote:
On Dec 12, 2012, at 8:17 AM, Peter Dimov <lists@pdimov.com> wrote:
Marshall Clow wrote:
There's a full list at: http://www.boost.org/doc/libs/1_52_0/libs/config/doc/html/boost_config/boost...
This list doesn't appear to be complete; it's missing, for example, BOOST_HAS_RVALUE_REFS.
I haven't touched any of the BOOST_HAS macros - they should be unchanged.
However, I just added BOOST_HAS_RVALUE_REFS to the docs. (r 81878)
In an ideal world, I think that macro should be named BOOST_HAS_CXX11_RVALUE_REFERENCES or (even better) !defined(BOOST_NO_CXX11_RVALUE_REFERENCES), but not today.
There are two more such macros, as far as I can see: BOOST_HAS_STATIC_ASSERT and BOOST_HAS_VARIADIC_TMPL.
Do you want these cleaned up from the SmartPtr library for this release, by the way? There's still time.

On Dec 12, 2012, at 10:38 AM, Peter Dimov <lists@pdimov.com> wrote:
Marshall Clow wrote:
On Dec 12, 2012, at 8:17 AM, Peter Dimov <lists@pdimov.com> wrote:
Marshall Clow wrote:
There's a full list at: http://www.boost.org/doc/libs/1_52_0/libs/config/doc/html/boost_config/boost...
This list doesn't appear to be complete; it's missing, for example, > > BOOST_HAS_RVALUE_REFS.
I haven't touched any of the BOOST_HAS macros - they should be > unchanged.
However, I just added BOOST_HAS_RVALUE_REFS to the docs. (r 81878)
In an ideal world, I think that macro should be named > BOOST_HAS_CXX11_RVALUE_REFERENCES or (even better) > !defined(BOOST_NO_CXX11_RVALUE_REFERENCES), but not today.
There are two more such macros, as far as I can see: BOOST_HAS_STATIC_ASSERT and BOOST_HAS_VARIADIC_TMPL.
Do you want these cleaned up from the SmartPtr library for this release, by the way? There's still time.
If you have time, that would be great. I don't think we can get all uses of them out before we hit code freeze, but there aren't that many uses of those macros (SmartPtr and Heap, mostly). -- Marshall Marshall Clow Idio Software <mailto:mclow.lists@gmail.com> A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait). -- Yu Suzuki

On Dec 13, 2012, at 7:37 AM, Marshall Clow <mclow.lists@gmail.com> wrote:
On Dec 12, 2012, at 10:38 AM, Peter Dimov <lists@pdimov.com> wrote:
Marshall Clow wrote:
On Dec 12, 2012, at 8:17 AM, Peter Dimov <lists@pdimov.com> wrote:
Marshall Clow wrote:
There's a full list at: http://www.boost.org/doc/libs/1_52_0/libs/config/doc/html/boost_config/boost...
This list doesn't appear to be complete; it's missing, for example, > > BOOST_HAS_RVALUE_REFS.
I haven't touched any of the BOOST_HAS macros - they should be > unchanged.
However, I just added BOOST_HAS_RVALUE_REFS to the docs. (r 81878)
In an ideal world, I think that macro should be named > BOOST_HAS_CXX11_RVALUE_REFERENCES or (even better) > !defined(BOOST_NO_CXX11_RVALUE_REFERENCES), but not today.
There are two more such macros, as far as I can see: BOOST_HAS_STATIC_ASSERT and BOOST_HAS_VARIADIC_TMPL.
Do you want these cleaned up from the SmartPtr library for this release, by the way? There's still time.
If you have time, that would be great. I don't think we can get all uses of them out before we hit code freeze, but there aren't that many uses of those macros (SmartPtr and Heap, mostly).
Just saw r81900 and r81901 -- you rock, Peter! -- Marshall Marshall Clow Idio Software <mailto:mclow.lists@gmail.com> A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait). -- Yu Suzuki

On Dec 13, 2012, at 9:54 AM, Peter Dimov <lists@pdimov.com> wrote:
Marshall Clow wrote:
Just saw r81900 and r81901 -- you rock, Peter!
Not at all. It was a simple matter of find and replace. Don't forget to tell Glen that he rocks, too - see [81886].
I missed that - but yeah - Glen rocks, too ;-) -- Marshall Marshall Clow Idio Software <mailto:mclow.lists@gmail.com> A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait). -- Yu Suzuki

On Dec 13, 2012, at 10:08 AM, Marshall Clow <mclow.lists@gmail.com> wrote:
On Dec 13, 2012, at 9:54 AM, Peter Dimov <lists@pdimov.com> wrote:
Marshall Clow wrote:
Just saw r81900 and r81901 -- you rock, Peter!
Not at all. It was a simple matter of find and replace. Don't forget to tell Glen that he rocks, too - see [81886].
I missed that - but yeah - Glen rocks, too ;-)
And Tim has updated Boost.Heap. So the following macros are no longer used in Boost. BOOST_HAS_STATIC_ASSERT BOOST_HAS_RVALUE_REFS BOOST_HAS_VARIADIC_TEMPLATES BOOST_HAS_CHAR_16_T BOOST_HAS_CHAR_32_T [ They're still set by the config system, and there are still tests for them in libs/config/test, but no one uses them .. on trunk. ] -- Marshall Marshall Clow Idio Software <mailto:mclow.lists@gmail.com> A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait). -- Yu Suzuki
participants (3)
-
Hartmut Kaiser
-
Marshall Clow
-
Peter Dimov