File tree Expand file tree Collapse file tree 3 files changed +25
-12
lines changed Expand file tree Collapse file tree 3 files changed +25
-12
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,15 @@ else()
35
35
"-Wsign-conversion" "-Wsign-promo"
36
36
"-Wstrict-null-sentinel" "-Wstrict-overflow=5"
37
37
"-Wno-deprecated-declarations" ) # auto_ptr is OK for now.
38
- elseif ("${CMAKE_CXX_COMPILER_ID} " MATCHES "Clang" AND NOT LUABIND_NO_CXX11)
39
- # I do not know (a) since when Clang supports this flags and (b) how to
40
- # check Clang's version. Use LUABIND_NO_CXX11 manually if you need to.
41
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++" )
38
+ elseif ("${CMAKE_CXX_COMPILER_ID} " MATCHES "Clang" )
39
+ add_definitions ("-Weverything" "-Wno-shadow" "-Wno-undef"
40
+ "-Wno-global-constructors" "-Wno-weak-vtables"
41
+ "-Wno-padded" "-Wno-exit-time-destructors" )
42
+ if (NOT LUABIND_NO_CXX11)
43
+ # I do not know (a) since when Clang supports this flags and (b) how to
44
+ # check Clang's version. Use LUABIND_NO_CXX11 manually if you need to.
45
+ add_definitions ("-std=c++11" "-Wno-c++98-compat" )
46
+ endif ()
42
47
endif ()
43
48
endif ()
44
49
Original file line number Diff line number Diff line change 7
7
8
8
# include < luabind/config.hpp>
9
9
# include < luabind/lua_include.hpp>
10
+ # include < luabind/object_fwd.hpp>
10
11
# include < luabind/typeid.hpp>
11
12
12
13
# include < boost/mpl/begin_end.hpp>
13
14
# include < boost/mpl/next.hpp>
14
15
# include < boost/mpl/size.hpp>
15
16
16
- namespace luabind {
17
-
18
- class object ;
19
- class argument ;
20
- template <class Base >
21
- struct table ;
22
-
23
- } // namespace luabind
24
17
25
18
namespace luabind { namespace detail {
26
19
Original file line number Diff line number Diff line change
1
+ #ifndef LUABIND_OBJECT_FWD_050419_HPP
2
+ #define LUABIND_OBJECT_FWD_050419_HPP
3
+
4
+ namespace luabind {
5
+ namespace adl {
6
+ class object ;
7
+ class argument ;
8
+ template <class Base > struct table ;
9
+ } // namespace adl
10
+ using adl::object;
11
+ using adl::argument;
12
+ using adl::table;
13
+ } // namespace luabind
14
+
15
+ #endif
You can’t perform that action at this time.
0 commit comments