You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had some enums where I defined an ostream<< operator, and I want to use it to print my enums rather than printing their underlying value like doctest seems to do by default.
(disclaimer: I have not tested the example code above.)
Extra information
I found a workaround but it only works for GCC (see: #121 (comment))
I suggest to tweak doctest's enum printing code so that it only prints enums by their underlying type if they do not meet the requirements of has_insertion_operator.
The text was updated successfully, but these errors were encountered:
Description
I had some enums where I defined an ostream<< operator, and I want to use it to print my enums rather than printing their underlying value like doctest seems to do by default.
Steps to reproduce
(disclaimer: I have not tested the example code above.)
Extra information
I found a workaround but it only works for GCC (see: #121 (comment))
I suggest to tweak doctest's enum printing code so that it only prints enums by their underlying type if they do not meet the requirements of
has_insertion_operator
.The text was updated successfully, but these errors were encountered: