mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
bootstrap update to link pthreads, on top of container_traits improvement because of clang++ bounds-checking
This commit is contained in:
parent
5ce8c9f9ba
commit
6eaa277860
|
@ -133,7 +133,7 @@ if args.testing:
|
||||||
cxxflags.append('-Wmissing-declarations')
|
cxxflags.append('-Wmissing-declarations')
|
||||||
|
|
||||||
if 'linux' in sys.platform:
|
if 'linux' in sys.platform:
|
||||||
cxxflangs.append('-pthread')
|
cxxflags.append('-pthread')
|
||||||
ldflags.extend(libraries(['dl']))
|
ldflags.extend(libraries(['dl']))
|
||||||
|
|
||||||
builddir = 'bin'
|
builddir = 'bin'
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// This file was generated with a script.
|
// This file was generated with a script.
|
||||||
// Generated 2017-08-07 12:34:45.380203 UTC
|
// Generated 2017-08-07 17:57:23.393094 UTC
|
||||||
// This header was generated with sol v2.18.0 (revision 62b242b)
|
// This header was generated with sol v2.18.0 (revision 5ce8c9f)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||||
|
@ -14429,7 +14429,7 @@ namespace sol {
|
||||||
}
|
}
|
||||||
|
|
||||||
static iterator end(lua_State*, T& self) {
|
static iterator end(lua_State*, T& self) {
|
||||||
return std::addressof(self[std::extent<T>::value]);
|
return std::addressof(self[0]) + std::extent<T>::value;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
} // container_detail
|
} // container_detail
|
||||||
|
|
|
@ -1123,7 +1123,7 @@ namespace sol {
|
||||||
}
|
}
|
||||||
|
|
||||||
static iterator end(lua_State*, T& self) {
|
static iterator end(lua_State*, T& self) {
|
||||||
return std::addressof(self[std::extent<T>::value]);
|
return std::addressof(self[0]) + std::extent<T>::value;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
} // container_detail
|
} // container_detail
|
||||||
|
|
Loading…
Reference in New Issue
Block a user