Improve launder
authorPhil Willoughby <philwill@fb.com>
Wed, 12 Jul 2017 07:36:17 +0000 (00:36 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 12 Jul 2017 07:53:49 +0000 (00:53 -0700)
commitfccb5ab622df7c7c572be2daf1fe5aa5f8e9604c
treeb4dfd18d584d2b18213b9598efd2caaa1e308331
parentdcb41c967151be259a189401bccf56b0c6591b1c
Improve launder

Summary:
Should now work on GCC-compatible compilers, and all other compilers which don't attempt any inter-TU optimizations.

Moved out of Utility.h because it now requires a supporting .cpp file and some clients presume that Utility.h can be used header-only.

Reviewed By: ot

Differential Revision: D5381042

fbshipit-source-id: 7e954fed47de4386c85d46a61d56a8fe7fc516f4
folly/Launder.h [new file with mode: 0644]
folly/Makefile.am
folly/Utility.h
folly/test/LaunderTest.cpp [new file with mode: 0644]