Fix standard error for macOS
Same as we did for #2 (closed) probably...
In this notebook the output of
#include <map>
#include <iostream>
std::map<std::string, unsigned int> age_list
{
{ "Alice", 25 },
{ "Charlie", 31 },
{ "Bob", 22 },
};
{
auto result = age_list.insert({"Dave", 44});
if (!result.second)
std::cerr << "Insertion of Dave failed" << std::endl;
}
{
auto result = age_list.insert({"Alice", 32});
if (!result.second)
std::cerr << "Insertion of Alice failed" << std::endl;
}
for (const auto& [name, age] : age_list)
std::cout << name << " : " << age << std::endl;
is currently:
Alice : 25
Bob : 22
Charlie : 31
Dave : 44Insertion of Alice failedInsertion of Alice failed
Xeus-cling emphasized std::cerr
by using a red background; not mandatory at all but being able to do something similar would be cool.