Skip to content

Commit 25fb95f

Browse files
committed
Streamline toString(Enum)
1 parent 17527ae commit 25fb95f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

include/mrdocs/Metadata/Symbol/EnumToString.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
#include <boost/describe/enumerators.hpp>
1515
#include <boost/mp11.hpp>
1616
#include <mrdocs/Support/Assert.hpp>
17-
#include <mrdocs/Support/String.hpp>
1817
#include <string>
19-
#include <type_traits>
2018

2119
namespace mrdocs {
2220

@@ -26,8 +24,7 @@ namespace mrdocs {
2624
@return The string form of the enumerator.
2725
*/
2826
template <typename Enum>
29-
requires std::is_enum_v<Enum>
30-
&& boost::describe::has_describe_enumerators<Enum>::value
27+
requires boost::describe::has_describe_enumerators<Enum>::value
3128
std::string
3229
toString(Enum e)
3330
{

0 commit comments

Comments
 (0)