Having multiple using namespace
statements in one Jupyter cell doesn't work properly
#485
Labels
using namespace
statements in one Jupyter cell doesn't work properly
#485
To Reproduce
I'm using the Jupyter kernel included in Cling, not xeus-cling. For example, run in the first cell:
Then in the second cell, I access something from the second namespace,
std::chrono
:I would expect this to successfully declare the variable and give no output, but instead Cling gives an error indicating that the
std::chrono
namespace has not been made available:This same code works fine in the Cling command line interpreter, where things are not split up into cells.
I know that the first
using namespace
worked, since I can use justcout << "test";
with no problem in later cells. Doing more tests (with code other than the C++ standard library), it looks like only the firstusing namespace
is processed correctly by Cling, and all later ones in the same cell are ignored.Setup
The text was updated successfully, but these errors were encountered: