Could possibly do this in a more portable manner by using some sort of function overload.
BOOST_HAS_PRAGMA_ONCE