this code: http://pastebin.com/f168570c8
gives the compile error:
test_templates.cpp: In function 'int main(int, char**)':
test_templates.cpp:51: error: expected `(' before 'g'
test_templates.cpp:51: error: expected `)' before ';' token
test_templates.cpp:51: error: invalid const_cast from type 'bar<lab2::Gregorian>' to type 'bar<lab2::Julian>*'
where the Julian and Gregorian are date classes that inherit from Date
How do I "make" the variable j as if it was of <template> type Georgian?