feat: mark to_toml as deprecated

because the constructor of `toml::value()` supports all the stuff that
are supported by `to_toml`.
This commit is contained in:
ToruNiina
2019-03-15 14:29:32 +09:00
parent 4c7dc17b78
commit a04544637b
2 changed files with 16 additions and 0 deletions

View File

@@ -7,6 +7,16 @@
#include <memory>
#include <sstream>
#if __cplusplus >= 201402L
# define TOML11_MARK_AS_DEPRECATED [[deprecated]]
#elif defined(__GNUC__)
# define TOML11_MARK_AS_DEPRECATED __attribute__((deprecated))
#elif defined(_MSC_VER)
# define TOML11_MARK_AS_DEPRECATED __declspec(deprecated)
#else
# define TOML11_MARK_AS_DEPRECATED
#endif
namespace toml
{