In Jupyter, under Xeus-Cling, the C++ interpreter doesn’t seem to like templates, which is unsurprising when you think about it.

For example, this snippet will generate pages of errors.

#include <vector>

std::vector<int> v;

Is there a workaround for trying/testing C++ template code in Jupyter notebooks?

1