Skip to content

Commit 719d16b

Browse files
committed
Point::toLineProtocol() deprecated (#73).
1 parent 7b5f6b7 commit 719d16b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

include/Point.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ class INFLUXDB_EXPORT Point
5555
static auto getCurrentTimestamp() -> decltype(std::chrono::system_clock::now());
5656

5757
/// Converts point to Influx Line Protocol
58+
/// \deprecated Will be removed in a later version
59+
[[deprecated("toLineProtocol() will be removed in a later version")]]
5860
std::string toLineProtocol() const;
5961

6062
/// Sets custom timestamp

test/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ function(add_unittest name)
2121
endfunction()
2222

2323
add_unittest(PointTest)
24+
target_compile_options(PointTest PRIVATE $<$<NOT:$<BOOL:${MSVC}>>:-Wno-deprecated-declarations>)
25+
2426
add_unittest(LineProtocolTest)
2527
target_link_libraries(LineProtocolTest PRIVATE InfluxDB-Internal)
28+
2629
add_unittest(InfluxDBTest)
2730
add_unittest(InfluxDBFactoryTest)
2831

0 commit comments

Comments
 (0)