Put the alignment declaration after the class keyword and before the class's name:
class
template<typename xyz> class __declspec(align(16)) myclass { ... };