Created
July 13, 2011 12:44
-
-
Save hpcx82/1080228 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
template <class T> | |
class Queue | |
{ | |
public: | |
static int Size; | |
}; | |
#ifdef TEMPLATE_EXPORTS | |
# define DECLSPECIFIER __declspec(dllexport) | |
# define EXPIMP_TEMPLATE | |
#else | |
# define DECLSPECIFIER __declspec(dllimport) | |
# define EXPIMP_TEMPLATE | |
#endif | |
template <class T> int Queue<T>::Size = 0; | |
EXPIMP_TEMPLATE template class DECLSPECIFIER Queue<int>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment