prog.cpp:13:12: error: explicit specialization in non-namespace scope ‘struct CIODevice’
template <>
^
prog.cpp:20:11: error: too many template-parameter-lists
CIODevice& operator>> (T& value)
^
prog.cpp: In function ‘int main()’:
prog.cpp:32:9: error: no match for ‘operator>>’ (operand types are ‘CIODevice’ and ‘int’)
device >> i;
^