std-source-location Questions
8
Solved
The C++20 feature std::source_location is used to capture information about the context in which a function is called.
When I try to use it with a variadic template function, I encountered a probl...
Corissa asked 18/8, 2019 at 18:23
1
Solved
Consider the template function g() and free function f():
#include <iostream>
#include <source_location>
auto g(auto...) {
std::cout << std::source_location::current().column() &...
Overexert asked 19/3, 2021 at 14:8
2
Solved
A slightly strange question, however, if I remember correctly, C++ source code doesn't require a file system to store its files.
Having a compiler that scans handwritten papers via a camera would ...
Komsomol asked 18/8, 2019 at 20:40
1
std::experimental::source_location will probably be added to the C++ standard at some point. I'm wondering if it possible to get the location information into the compile-time realm. Essentially, I...
Hybris asked 24/10, 2018 at 20:39
1
Solved
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_locat...
Dania asked 21/12, 2015 at 23:8
1
© 2022 - 2024 — McMap. All rights reserved.