C++ Logo

std-discussion

Advanced search

Re: std::apply and adl get

From: Giuseppe D'Angelo <giuseppe.dangelo_at_[hidden]>
Date: Tue, 28 Sep 2021 22:00:47 +0200
Hi,

Il 28/09/21 21:21, Peter Sommerlad (C++) via Std-Discussion ha scritto:
> As the author of the initial spec for apply (after its implementation
> was available as an example in the standard, I think that when apply was
> specified, structured bindings weren't invented yet, and nobody thought
> about applying apply to something that is not a tuple. I would say that
> structured bindings were the reason to expand the possibilities to
> non-tuples and allowing therefore the customization.

Is it by design that apply uses std::get, but make_from_tuple uses
unqualified get?

https://eel.is/c++draft/tuple.apply

(Implementations seem to use std::get for both, FWIW.)

Thanks,

-- 
Giuseppe D'Angelo | giuseppe.dangelo_at_[hidden] | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

Received on 2021-09-28 15:00:54