mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-18 15:24:11 +00:00
fix addressof implementation
This commit is contained in:
parent
586c9972dc
commit
5b190c8b6e
9 changed files with 34 additions and 28 deletions
|
@ -19,6 +19,7 @@
|
|||
#include <sprout/functional/base.hpp>
|
||||
#include <sprout/functional/type_traits/weak_result_type.hpp>
|
||||
#include <sprout/functional/type_traits/has_type.hpp>
|
||||
#include <sprout/memory/addressof.hpp>
|
||||
|
||||
namespace sprout {
|
||||
// 20.8.3 reference_wrapper
|
||||
|
@ -152,7 +153,7 @@ namespace sprout {
|
|||
public:
|
||||
// construct/copy/destroy
|
||||
SPROUT_CONSTEXPR reference_wrapper(T& t) SPROUT_NOEXCEPT
|
||||
: t_(&t)
|
||||
: t_(sprout::addressof(t))
|
||||
{}
|
||||
reference_wrapper(reference_wrapper const&) = default;
|
||||
// assignment
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue