This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/66284] std::reference_wrapper is transparent to std::function::target_type
- From: "potswa at mac dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 13 Oct 2016 16:28:30 +0000
- Subject: [Bug libstdc++/66284] std::reference_wrapper is transparent to std::function::target_type
- Auto-submitted: auto-generated
- References: <bug-66284-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66284
--- Comment #2 from David Krauss <potswa at mac dot com> ---
The converting constructor requirements also say more explicitly,
shall not throw exceptions when f is a function pointer
or a reference_wrapper<T> for some T.
Probably the copy constructor should be worded similarly.
In any case, the exception guarantee isn't affected, as
sizeof(reference_wrapper<T>) == sizeof(T*).