This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3 PATCH] Do the operator= SFINAE in the return type for optional, not in the template parameters.


On 19/10/16 22:35 +0300, Ville Voutilainen wrote:
   Do the operator= SFINAE in the return type for optional,
   not in the template parameters.
   * include/std/optional (operator=(_Up&&)): Move SFINAE
   from template parameters to the return type.
   (operator=(const optional<_Up>&)): Likewise.
   (operator=(optional<_Up>&&)): Likewise.

OK.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]