Skip to content

Commit

Permalink
Suppress GCC warning (temporary), fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickroberts committed Jan 29, 2025
1 parent e735262 commit 2812c57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ include(GNUInstallDirs)

add_library(beman.any_view INTERFACE)
add_library(beman::any_view ALIAS beman.any_view)
# TODO: implement non-template friend function and remove this suppression
target_compile_options(
beman.any_view INTERFACE $<$<CXX_COMPILER_ID:GNU>:-Wno-non-template-friend>)
target_include_directories(
beman.any_view
INTERFACE $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/any_view/concepts.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct options {
#elif BEMAN_ANY_VIEW_USE_NAMED()

template <class IterConceptT>
using options = beman::any_view::any_view_options options{
inline constexpr beman::any_view::any_view_options options{
.reference_type = beman::any_view::type<int&>,
.iterator_concept = beman::any_view::type<IterConceptT>,
};
Expand Down

0 comments on commit 2812c57

Please sign in to comment.