diff --git a/include/GL/glui.h b/include/GL/glui.h index 07758b1..5c15080 100644 --- a/include/GL/glui.h +++ b/include/GL/glui.h @@ -1694,6 +1694,12 @@ class GLUIAPI GLUI_EditText : public GLUI_Control /* */ /************************************************************/ +#ifdef _MSC_VER +// Explicit template instantiation needed for dll +template class GLUIAPI std::allocator; +template class GLUIAPI std::vector >; +#endif + class GLUIAPI GLUI_CommandLine : public GLUI_EditText { public: @@ -1701,12 +1707,6 @@ class GLUIAPI GLUI_CommandLine : public GLUI_EditText enum { HIST_SIZE = 100 }; - #ifdef _MSC_VER - // Explicit template instantiation needed for dll - template class GLUIAPI std::allocator; - template class GLUIAPI std::vector >; - #endif - std::vector hist_list; int curr_hist; int oldest_hist;