Skip to content

Commit cd441d8

Browse files
make format
1 parent 25b877a commit cd441d8

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,4 @@ clean:
1313

1414
clang_format=`which clang-format`
1515
format: $(shell find . -name '*.hpp') $(shell find . -name '*.cpp')
16-
ifeq ($(findstring version 10,$(shell ${clang_format} --version 2>/dev/null)),)
17-
@echo "clang-format 10 is required"
18-
else
1916
@${clang_format} -i $?
20-
endif

inst/include/cpp11/R.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
#endif
2929
// clang-format on
3030

31-
#include "cpp11/altrep.hpp"
3231
#include <type_traits>
32+
#include "cpp11/altrep.hpp"
3333

3434
namespace cpp11 {
3535
namespace literals {
@@ -49,12 +49,14 @@ template <typename T>
4949
inline T na();
5050

5151
template <typename T>
52-
inline typename std::enable_if<!std::is_same<T, double>::value, bool>::type is_na(T value) {
52+
inline typename std::enable_if<!std::is_same<T, double>::value, bool>::type is_na(
53+
T value) {
5354
return value == na<T>();
5455
}
5556

5657
template <typename T>
57-
inline typename std::enable_if<std::is_same<T, double>::value, bool>::type is_na(T value) {
58+
inline typename std::enable_if<std::is_same<T, double>::value, bool>::type is_na(
59+
T value) {
5860
return ISNA(value);
5961
}
6062

0 commit comments

Comments
 (0)