Skip to content

Commit cd646a2

Browse files
committed
style: run pre-commit
1 parent 7d7d227 commit cd646a2

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

examples/cpp/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ cmake_minimum_required(VERSION 3.14...3.20)
55

66
project(BOOST_HISTOGRAM_CPP LANGUAGES CXX)
77

8-
98
add_library(boost_histogram_cpp IMPORTED INTERFACE)
109

1110
# these are the boost header-only libraries required by boost::histogram
@@ -19,9 +18,8 @@ target_include_directories(
1918
../../extern/throw_exception/include
2019
../../extern/variant2/include)
2120

22-
23-
target_compile_options(boost_histogram_cpp
24-
INTERFACE $<IF:$<CXX_COMPILER_ID:MSVC>,/fp:fast,-funsafe-math-optimizations>)
21+
target_compile_options(
22+
boost_histogram_cpp INTERFACE $<IF:$<CXX_COMPILER_ID:MSVC>,/fp:fast,-funsafe-math-optimizations>)
2523

2624
target_compile_features(boost_histogram_cpp INTERFACE cxx_std_14)
2725

examples/cpp/simple.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
#include <iostream>
33

44
int main() {
5-
namespace bh = boost::histogram;
5+
namespace bh = boost::histogram;
66

7-
auto h = bh::make_histogram(bh::axis::category<int>{});
7+
auto h = bh::make_histogram(bh::axis::category<int>{});
88

9-
std::cout << bh::algorithm::sum(h) << std::endl;
9+
std::cout << bh::algorithm::sum(h) << std::endl;
1010
}
11-

0 commit comments

Comments
 (0)