prog.cpp: In function 'int main()':
prog.cpp:4:9: error: 'double A<double>::a' is private
prog.cpp:19:28: error: within this context
prog.cpp:4:9: error: 'double A<double>::a' is private
prog.cpp:19:28: error: within this context
prog.cpp: In function 'decltype (std::abs(x->diff(y))) dist(const A<X>&, const A<Y>&) [with X = double, Y = double, decltype (std::abs(x->diff(y))) = double]':
prog.cpp:4:9: error: 'double A<double>::a' is private
prog.cpp:19:28: error: within this context
prog.cpp: In function 'int main()':
prog.cpp:4:9: error: 'double A<double>::a' is private
prog.cpp:19:28: error: within this context
prog.cpp:4:9: error: 'double A<double>::a' is private
prog.cpp:19:28: error: within this context
prog.cpp: In function 'decltype (std::abs(x->diff(y))) dist(const A<X>&, const A<Y>&) [with X = double, Y = double, decltype (std::abs(x->diff(y))) = double]':
prog.cpp:19:28: instantiated from here
prog.cpp:4:9: error: 'double A<double>::a' is private
prog.cpp:13:17: error: within this context
prog.cpp:4:9: error: 'double A<double>::a' is private
prog.cpp:13:17: error: within this context
prog.cpp:4:9: error: 'double A<double>::a' is private
prog.cpp:14:32: error: within this context
prog.cpp:4:9: error: 'double A<double>::a' is private
prog.cpp:14:32: error: within this context