We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60a7e0e commit 0c70c97Copy full SHA for 0c70c97
1 file changed
src/enum19.lib/enum19/Enum.ostream.h
@@ -7,7 +7,7 @@
7
namespace enum19 {
8
9
template<class Enum> auto enumNameOstream(std::ostream& out, const Enum& e) -> std::ostream& {
10
- auto underlying = static_cast<std::underlying_type_t<T>>(e);
+ auto underlying = static_cast<std::underlying_type_t<Enum>>(e);
11
return out << valueName(e) << " (" << underlying << ")";
12
}
13
0 commit comments