Thursday, January 27, 2022

Digest for comp.lang.c++@googlegroups.com - 1 update in 1 topic

wij <wyniijj@gmail.com>: Jan 27 02:50AM -0800

On Wednesday, 26 January 2022 at 21:55:46 UTC+8, Paavo Helde wrote:
> compile it and reports an ambiguity. Who is right?
 
> PS. If one replaces foo(A&&) with foo(const A&), then also MSVC reports
> an ambiguity.
 
Another quick thought without testing: The ctor B(e) might consider using 'explicit'
 
class B {
public:
explicit B(e) {};
};
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: