10000 Rename header file and fix include guard · amalbansode/numeric-range@e48832b · GitHub
[go: up one dir, main page]

Skip to content

Commit e48832b

Browse files
committed
Rename header file and fix include guard
1 parent bfafeb3 commit e48832b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

example/range_map.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../src/numeric_range.h"
1+
#include "../src/numeric_range.hpp"
22

33
#include <iostream>
44
#include <map>

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
add_library(numeric_range INTERFACE)
22

33
list(APPEND numeric_range_sources
4-
"${CMAKE_CURRENT_LIST_DIR}/numeric_range.h"
4+
"${CMAKE_CURRENT_LIST_DIR}/numeric_range.hpp"
55
)

src/numeric_range.h renamed to src/numeric_range.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef JSON_EQUATION_JSON_EQUATION_H
2-
#define JSON_EQUATION_JSON_EQUATION_H
1+
#ifndef NUMERIC_RANGE_HPP
2+
#define NUMERIC_RANGE_HPP
33

44
#include <stdexcept>
55

@@ -67,4 +67,4 @@ class NumericRangeComparator
6767
} // bool operator()
6868
}; // class NumericRangeComparator
6969

70-
#endif //JSON_EQUATION_JSON_EQUATION_H
70+
#endif //NUMERIC_RANGE_HPP

test/numeric_range_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main()
22

33
#include "catch.hpp"
4-
#include "../src/numeric_range.h"
4+
#include "../src/numeric_range.hpp"
55

66
using namespace std;
77

0 commit comments

Comments
 (0)
0