Skip to content

Commit 2812c57

Browse files
Suppress GCC warning (temporary), fix syntax error
1 parent e735262 commit 2812c57

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ include(GNUInstallDirs)
6868

6969
add_library(beman.any_view INTERFACE)
7070
add_library(beman::any_view ALIAS beman.any_view)
71+
# TODO: implement non-template friend function and remove this suppression
72+
target_compile_options(
73+
beman.any_view INTERFACE $<$<CXX_COMPILER_ID:GNU>:-Wno-non-template-friend>)
7174
target_include_directories(
7275
beman.any_view
7376
INTERFACE $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>

tests/beman/any_view/concepts.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ struct options {
1414
#elif BEMAN_ANY_VIEW_USE_NAMED()
1515

1616
template <class IterConceptT>
17-
using options = beman::any_view::any_view_options options{
17+
inline constexpr beman::any_view::any_view_options options{
1818
.reference_type = beman::any_view::type<int&>,
1919
.iterator_concept = beman::any_view::type<IterConceptT>,
2020
};

0 commit comments

Comments
 (0)