Retire BOOST_STATIC_ASSERT in favor of static_assert
authorYedidya Feldblum <yfeldblum@fb.com>
Tue, 26 Apr 2016 07:56:27 +0000 (00:56 -0700)
committerFacebook Github Bot 3 <facebook-github-bot-3-bot@fb.com>
Tue, 26 Apr 2016 08:05:36 +0000 (01:05 -0700)
commit43d56a22929bd4d591d3d6a5fb5a9bc0894facea
tree81ac4b42ea7323e41d8e24c6110d2f716099819c
parent57e517a56bd048c902be1c1e1a0655316a5189a4
Retire BOOST_STATIC_ASSERT in favor of static_assert

Summary:
Retire `BOOST_STATIC_ASSERT` in favor of `static_assert`.

`static_assert` is part of C++ now, so we don't need workarounds like `BOOST_STATIC_ASSERT` anymore.

Partially automated:

    hg grep -lw BOOST_STATIC_ASSERT | xargs perl -pi -e 's~\bBOOST_STATIC_ASSERT\(([^;]*)\);~static_assert(\1, "");~g'
    hg grep -lw 'boost/static_assert.hpp' | xargs perl -pi -e 's,^#include <boost/static_assert\.hpp>\n,,gm'

Caught most instances. Formatting and remaining instances addressed manually.

Reviewed By: meyering

Differential Revision: D3215944

fb-gh-sync-id: f4552d5d9bfc416ce283923abe880437a4d0cba5
fbshipit-source-id: f4552d5d9bfc416ce283923abe880437a4d0cba5
folly/SocketAddress.cpp
folly/docs/FBVector.md
folly/docs/Traits.md
folly/io/async/EventBase.cpp
folly/stats/TimeseriesHistogram.h