From 4bbb21d7afa45c407d0adc3f3c3e08417c0c28a3 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 8 Jun 2017 06:01:05 -0700 Subject: [PATCH] Use BOOST_STRINGIZE fix #384 --- CHANGELOG.md | 1 + include/beast/version.hpp | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c6f4040..1c62a7cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Version 51 * Tidy up file_body * Fix file_body::get() not setting the more flag correctly * Use BOOST_FALLTHROUGH +* Use BOOST_STRINGIZE API Changes: diff --git a/include/beast/version.hpp b/include/beast/version.hpp index a55c38b0..b00085ed 100644 --- a/include/beast/version.hpp +++ b/include/beast/version.hpp @@ -9,9 +9,7 @@ #define BEAST_VERSION_HPP #include - -#define BEAST_QUOTE(arg) #arg -#define BEAST_STR(arg) BEAST_QUOTE(arg) +#include /** @def BEAST_API_VERSION @@ -22,7 +20,7 @@ */ #define BEAST_VERSION 50 -#define BEAST_VERSION_STRING "Beast/" BEAST_STR(BEAST_VERSION) +#define BEAST_VERSION_STRING "Beast/" BOOST_STRINGIZE(BEAST_VERSION) #endif