Skip to content

Commit f2a34dd

Browse files
committed
Mark styler user-defined literals as consteval
1 parent b8266e3 commit f2a34dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fly/logger/styler.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#pragma once
22

3+
#include "fly/fly.hpp"
34
#include "fly/logger/detail/styler_proxy.hpp"
45
#include "fly/traits/traits.hpp"
56
#include "fly/types/numeric/literals.hpp"
@@ -127,7 +128,7 @@ inline namespace literals {
127128
* @return The constructed Color.
128129
*/
129130
template <char... Literals>
130-
constexpr inline Color operator"" _c()
131+
FLY_CONSTEVAL inline Color operator"" _c()
131132
{
132133
// Convert to std::uint8_t via numeric literal to ensure the provided color is valid.
133134
const std::uint8_t validated_color = operator"" _u8<Literals...>();

0 commit comments

Comments
 (0)