Replacing assert with BOOST_ASSERT to enable/disable it using BOOST_DISABLE_ASSERTS definition.