When compiled with clang-cl (LLVM toolset integrated in Visual Studio), it complains:
error : explicit instantiation of 'Im3d::Vector' must occur in namespace 'Im3d'
Explicit instantiation can only appear in the enclosing namespace of the template, unless it uses qualified-id (see 'Explicit instantiation' section in cppreference). So it can be fixed by adding a Im3d namespace to warp the explicit instantiation codes.
When compiled with clang-cl (LLVM toolset integrated in Visual Studio), it complains:
Explicit instantiation can only appear in the enclosing namespace of the template, unless it uses qualified-id (see 'Explicit instantiation' section in cppreference). So it can be fixed by adding a
Im3d
namespace to warp the explicit instantiation codes.