79142756

Date: 2024-10-30 20:57:36
Score: 2
Natty:
Report link
  1. Please explain how and why the conversion operator of the type used as an argument for t.set in the requires expression is evaluated during the instantiation of the concept.

Like normal. The expression needs to be check to see if its valid so it goes through the normal overload resolution steps and it converts s to a type that works.

  1. Please explain why the overload set of Bazzz yields a build failure for the concept

You have an ambiguous conversion as both void set(char *); and void set(std::string); are viable since s can be converted to a char* or a std::string. Non of these conversions is better than the other so you get an error.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please explain how
  • RegEx Blacklisted phrase (2.5): Please explain
  • Long answer (-0.5):
  • Has code block (-0.5):
  • High reputation (-2):
Posted by: NathanOliver