79766660

Date: 2025-09-16 20:34:01
Score: 1.5
Natty:
Report link

The decltype(auto) mechanism correctly holds the reference on the POSIX branch because you are returning a named lvalue (path). On the Windows branch, you are returning a prvalue (a temporary object), so the deduced type is the plain value type (std::filesystem::path), which is exactly the desired behavior.

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