Skip to content

Commit

Permalink
Point::toLineProtocol() deprecated (#73).
Browse files Browse the repository at this point in the history
  • Loading branch information
offa committed Mar 9, 2021
1 parent 7b5f6b7 commit 719d16b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/Point.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class INFLUXDB_EXPORT Point
static auto getCurrentTimestamp() -> decltype(std::chrono::system_clock::now());

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

/// Sets custom timestamp
Expand Down
3 changes: 3 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ function(add_unittest name)
endfunction()

add_unittest(PointTest)
target_compile_options(PointTest PRIVATE $<$<NOT:$<BOOL:${MSVC}>>:-Wno-deprecated-declarations>)

add_unittest(LineProtocolTest)
target_link_libraries(LineProtocolTest PRIVATE InfluxDB-Internal)

add_unittest(InfluxDBTest)
add_unittest(InfluxDBFactoryTest)

Expand Down

0 comments on commit 719d16b

Please sign in to comment.