john-chapman / im3d

Immediate mode rendering and 3d gizmos.
MIT License
1.21k stars 63 forks source link

Fix ce with clang-cl. #41

Closed AirGuanZ closed 4 years ago

AirGuanZ commented 4 years ago

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.

john-chapman commented 4 years ago

👍 Great, thanks for the fix!