Adding types to the std namespace

Only specializations are allowed. So for example, you are allowed to specialize std::numeric_limits for your type. And this of course must happen in namespace std::. But your typedef isn’t a specialization so that’s causing undefined behavior.

Leave a Comment