Skip to content

Commit ff9f2c2

Browse files
committed
Prevent GMF discards
1 parent 51d6028 commit ff9f2c2

File tree

6 files changed

+23
-2
lines changed

6 files changed

+23
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#ifdef BOOST_USE_MODULES
2+
#ifndef BOOST_COMPATIBILITY_HEADERS_SKIP_IMPORT
23
import std;
4+
#endif
35
#else
46
#include <cassert>
57
#endif
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#ifdef BOOST_USE_MODULES
2+
#ifndef BOOST_COMPATIBILITY_HEADERS_SKIP_IMPORT
23
import std;
4+
#endif
35
#else
46
#include <cstddef>
57
#endif
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#ifdef BOOST_USE_MODULES
2+
#ifndef BOOST_COMPATIBILITY_HEADERS_SKIP_IMPORT
23
import std;
4+
#endif
35
#else
46
#include <tuple>
57
#endif
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#ifdef BOOST_USE_MODULES
2+
#ifndef BOOST_COMPATIBILITY_HEADERS_SKIP_IMPORT
23
import std;
4+
#endif
35
#else
46
#include <type_traits>
57
#endif
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#ifdef BOOST_USE_MODULES
2+
#ifndef BOOST_COMPATIBILITY_HEADERS_SKIP_IMPORT
23
import std;
4+
#endif
35
#else
46
#include <utility>
57
#endif

modules/boost_mp11.cppm

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
module;
22

3-
#define BOOST_MP11_INTERFACE_UNIT
43
#include <cassert>
5-
#include <boost/mp11.hpp>
64

75
export module boost.mp11;
6+
import std;
7+
8+
#define BOOST_MP11_INTERFACE_UNIT
9+
#define BOOST_COMPATIBILITY_HEADERS_SKIP_IMPORT
10+
11+
#ifdef __clang__
12+
#pragma clang diagnostic push
13+
#pragma clang diagnostic ignored "-Winclude-angled-in-module-purview"
14+
#endif
15+
16+
extern "C++" {
17+
#include <boost/mp11.hpp>
18+
}
819

920
export namespace boost::mp11 {
1021

0 commit comments

Comments
 (0)