Skip to content

Commit

Permalink
change: msvc adapt
Browse files Browse the repository at this point in the history
  • Loading branch information
ackingliu committed Nov 30, 2023
1 parent bd0e784 commit cb21640
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/elog/any.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#pragma once

#if __cplusplus >= 201703l
#if __cplusplus >= 201703l || (_MSC_VER && _MSVC_LANG >= 201703L)
#include <any>
namespace elog {
using Any_t = std::any;
using std::any_cast;
} // namespace lblog
} // namespace elog
#else
#include "dependencies/any_lite.h"
namespace elog {
Expand Down
2 changes: 1 addition & 1 deletion include/elog/string_view.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#if __cplusplus >= 201703L
#if __cplusplus >= 201703L || (_MSC_VER && _MSVC_LANG >= 201703L)
#include <string_view>
namespace elog {
using StringView = std::string_view;
Expand Down

0 comments on commit cb21640

Please sign in to comment.