Skip to content

Commit 147c06b

Browse files
committed
examples/git-dep: the version constants are in mcpplibs::mwrap::boost::macros
1 parent 42fd885 commit 147c06b

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎examples/git-dep/src/main.cpp‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import std;
99
import mcpplibs.mwrap.boost;
1010

11+
namespace macros = mcpplibs::mwrap::boost::macros;
12+
1113
static int failures = 0;
1214

1315
#define CHECK(cond) \
@@ -50,13 +52,13 @@ static void demo_json() {
5052

5153
static void demo_version() {
5254
std::printf("== version ==\n");
53-
CHECK(boost::BOOST_VERSION == 109200);
54-
CHECK(boost::BOOST_LIB_VERSION[0] == '1');
55-
std::printf(" BOOST_VERSION = %d\n", boost::BOOST_VERSION);
55+
CHECK(macros::BOOST_VERSION == 109200);
56+
CHECK(macros::BOOST_LIB_VERSION[0] == '1');
57+
std::printf(" BOOST_VERSION = %d\n", macros::BOOST_VERSION);
5658
}
5759

5860
int main() {
59-
std::printf("git-dep example - build %d\n", boost::BOOST_VERSION);
61+
std::printf("git-dep example - build %d\n", macros::BOOST_VERSION);
6062
demo_optional();
6163
demo_json();
6264
demo_version();

0 commit comments

Comments
 (0)