How could std::experimental::source_location be implemented?
问题 C++ Extensions for Library Fundamentals, Version 2 (N4564) introduces the type std::experimental::source_location. § 14.1.2 [reflection.src_loc.creation] says: static constexpr source_location current() noexcept; Returns: When invoked by a function call (C++14 § 5.2.2) whose postfix-expression is a (possibly parenthesized) id-expression naming current , returns a source_location with an implementation-defined value. The value should be affected by #line (C++14 § 16.4) in the same manner as