Removed uses of constexpr for MSVC 2013

This commit is contained in:
Rapptz 2013-11-25 05:20:14 -05:00
parent 2ce7f8f51d
commit 1c423da153
3 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -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);

View File

@ -28,7 +28,7 @@
namespace sol {
struct nil_t {};
constexpr nil_t nil{};
const nil_t nil{};
enum class type : int {
none = LUA_TNONE,