forked from luabind/luabind
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for conversion between Lua and rvalue references.
With C++11, boost::make_shared and std::make_shared use rvalue references to forward constructor arguments without copying. If the macro BOOST_HAS_RVALUE_REFS is defined, let the type trait is_nonconst_reference evaluate to true only for lvalue references. Use value_converter for rvalue reference types. Add specialisations for rvalue references of default_converter of number types, bool, std::string and boost::shared_ptr. Note that support of rvalue references requires Boost ≥ 1.44.0. Conflicts: luabind/detail/decorate_type.hpp luabind/detail/typetraits.hpp
- Loading branch information
Showing
4 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters