Is it possible to invoke a user-defined conversion function via list-initialization?

The original intent of 13.3.3.1p4 is to describe how to apply the requirement in 12.3p4 that: 4 – At most one user-defined conversion (constructor or conversion function) is implicitly applied to a single value. Before defect 84, 13.3.3.1p4 was almost purely informative: 4 – In the context of an initialization by user-defined conversion (i.e., when … Read more

How does SQL Server decide format for implicit datetime conversion?

This can depend on a variety of factors – the operating system’s regional settings, the current user’s language and dateformat settings. By default, Windows uses US English, and the user’s settings are US English and MDY. But here are some examples to show how this can change. User is using BRITISH language settings: — works: … Read more

Classes with both template and non-template conversion operators in the condition of switch statement

I believe clang is correct here. We can see from the draft C++ standard section 6.4.2 The switch statement that this involves a contextually implicit conversion. Paragraph 2 says (*emphasis mine going forward): The condition shall be of integral type, enumeration type, or class type. If of class type, the condition is contextually implicitly converted … Read more