Skip to content

Commit

Permalink
Strip inline attribute from templates (#64)
Browse files Browse the repository at this point in the history
The `inline` attribute has initially been used as a workaround to allow
function definitions in the header file. Templates are defined in
headers by design which means there's no need for `inline` attribute
anymore.
  • Loading branch information
ikalnytskyi committed Dec 13, 2021
1 parent b935974 commit b3cb0f3
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 54 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -20,7 +20,7 @@ target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_11)
option(TERMCOLOR_TESTS "Build termcolor tests." OFF)

if(TERMCOLOR_TESTS)
add_executable(test_${PROJECT_NAME} test/test.cpp)
add_executable(test_${PROJECT_NAME} test/test.cpp test/subtest.cpp)
target_link_libraries(
test_${PROJECT_NAME} ${PROJECT_NAME}::${PROJECT_NAME})
endif()
Expand Down

0 comments on commit b3cb0f3

Please sign in to comment.