Skip to content

Commit

Permalink
Other compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vector-of-bool committed Sep 3, 2024
1 parent 04d4704 commit 7911f8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/neo/query.test.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "./query.hpp"

#include <array>
#include <vector>

struct get_allocator : neo::query_interface<get_allocator> {
Expand Down
4 changes: 2 additions & 2 deletions src/neo/repr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ struct repr_builtin<void> {
/// repr()'d, includes the repr() of the pointed-to value
template <typename T>
struct repr_builtin<T*> {
constexpr static void write(auto out, auto* value) noexcept {
constexpr static void write(auto out, auto* value [[maybe_unused]]) noexcept {
if constexpr (neo_is_void(T)) {
// Special case for void*
if constexpr (out.just_type) {
Expand Down Expand Up @@ -473,7 +473,7 @@ struct repr_builtin<float> {
template <std::integral Integral>
requires(not neo_is_pointer(Integral) && weak_same_as<Integral, remove_cvref_t<Integral>>) //
struct repr_builtin<Integral> {
constexpr static void write(auto out, auto* value) noexcept {
constexpr static void write(auto out, auto* value [[maybe_unused]]) noexcept {
if constexpr (weak_same_as<Integral, bool>) {
if constexpr (out.just_type) {
out.append("bool");
Expand Down

0 comments on commit 7911f8b

Please sign in to comment.