![]() |
От: |
Marty
|
https://www.youtube.com/channel/UChp5PpQ6T4-93HbNF-8vSYg |
Дата: | 02.03.10 16:37 | ||
Оценка: |
typedef unsigned short TYPE1;
typedef unsigned short TYPE2;
template <typename T>
struct CSomeJobObj
{
void operator()( const T &t) {}
};
template<>
struct CSomeJobObj<TYPE1>
{
void operator()( const TYPE1 &t) {}
};
template<>
struct CSomeJobObj<TYPE2>
{
void operator()( const TYPE2 &t) {}
};