79694345

Date: 2025-07-08 13:41:54
Score: 1.5
Natty:
Report link

The static_assert fails because std::mem_fn(&Device::Version) returns a function object that returns a reference (std::string&), not a value, so the correct type is std::string&; fix it by changing the assertion to static_assert(std::is_same_v<Field, std::string&>).

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arnaud Tartulier