Skip to content

Commit

Permalink
Test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Dec 15, 2024
1 parent f04597f commit 2338fd3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/pybind11/typing.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ class Never : public none {
using none::none;
};

#if defined(PYBIND11_CPP17)
template <auto... Literals>
class Literal : public object {
PYBIND11_OBJECT_DEFAULT(Literal, object, PyObject_Type)
};
#endif

#if defined(__cpp_nontype_template_args) && __cpp_nontype_template_args >= 201911L
# define PYBIND11_TYPING_H_HAS_STRING_LITERAL

Expand All @@ -124,13 +131,6 @@ class Literal : public object {
};
#endif

#if defined(PYBIND11_CPP17)
template <auto... Literals>
class Literal : public object {
PYBIND11_OBJECT_DEFAULT(Literal, object, PyObject_Type)
};
#endif

PYBIND11_NAMESPACE_END(typing)

PYBIND11_NAMESPACE_BEGIN(detail)
Expand Down

0 comments on commit 2338fd3

Please sign in to comment.