#pragma once #include namespace mbgl { namespace android { namespace geojson { // Clang 3.8 fails to implicitly convert matching types, so we'll have to do it explicitly. template To convertExplicit(From&& src) { static_assert(std::is_same::container_type, typename To::container_type>::value, "container types do not match"); static_assert(std::is_rvalue_reference::value, "argument must be rvalue reference"); return *reinterpret_cast>(&src); } } // namespace geojson } // namespace android } // namespace mbgl