strongdef: force integer promotion in ostream operator

This commit is contained in:
Danny Robson 2019-03-14 16:52:05 +11:00
parent 488646bee7
commit 81538a86d3

View File

@ -67,7 +67,7 @@ namespace cruft::strongdef {
std::ostream&
operator<< (std::ostream &os, index<TagT,T> const &val)
{
return os << val.data;
return os << +val.data;
}
}