C++ Logo


Advanced search

Subject: Re: Does [expr.call]/1 correctly authorize the snippet below to compile?
From: Krystian Stasiowski (sdkrystian_at_[hidden])
Date: 2019-10-10 09:25:22

This is just another case where prvalue is implied, like with the operands of almost every other operator.Here is how I parse it:For a call to a non-member function or to a static member function, the postfix expression shall either be:- an lvalue that refers to a function (in which case the function-to-pointer standard conversion is suppressed on the postfix expression), or- [a prvalue and] have function pointer type. 

STD-DISCUSSION list run by std-discussion-owner@lists.isocpp.org

Older Archives on Google Groups