Recursive templates: compilation error under g++
- by Johannes
Hi,
I am trying to use templates recursively to define (at compile-time) a d-tuple of doubles. The code below compiles fine with Visual Studio 2010, but g++ fails and complains that it "cannot call constructor 'point<1::point' directly".
Could anyone please shed some light on what is going on here?
Many thanks, Jo
#include <iostream>…