mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Removed uses of constexpr for MSVC 2013
This commit is contained in:
parent
2ce7f8f51d
commit
1c423da153
|
@ -64,6 +64,8 @@ Sol makes use of C++11 features. The features used are as follows:
|
|||
- auto
|
||||
- uniform initialisation
|
||||
- noexcept
|
||||
- in class initialisation
|
||||
- default functions
|
||||
|
||||
GCC 4.7 and Clang 3.3 or higher should be able to compile without problems. Visual Studio 2013 with the November CTP should
|
||||
be able to support this as well.
|
||||
|
|
|
@ -35,7 +35,7 @@ private:
|
|||
return luaL_ref(L, LUA_REGISTRYINDEX);
|
||||
}
|
||||
public:
|
||||
constexpr reference() noexcept = default;
|
||||
reference() noexcept = default;
|
||||
|
||||
reference(lua_State* L, int index): L(L) {
|
||||
lua_pushvalue(L, index);
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
namespace sol {
|
||||
struct nil_t {};
|
||||
constexpr nil_t nil{};
|
||||
const nil_t nil{};
|
||||
|
||||
enum class type : int {
|
||||
none = LUA_TNONE,
|
||||
|
|
Loading…
Reference in New Issue
Block a user