python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Difficulty of implementing `case` expressions in a template-instantiation evaluator for a lazy functional language?
I'm following "Implementing functional languages: a tutorial" by SPJ, and I'm stuck on Exercise 2.18 (page 70), reproduced below. This is in the chapter about a template-instantiation evalua...
Jonathan Lam
Votes: 0
Answers: 1
Is use in an unused default member initializer still an odr-use?
Is use in a default member initializer still an odr-use, even if the default member initializer is not used by any constructor?
For example, is this program ill-formed because g<A> is odr-used a...
user17732522
Votes: 0
Answers: 1
Why does = default member initializer request instantiation of unique_ptr destructor while {} does not?
This is a follow up of this question: Does PIMPL idiom actually work using std::unique_ptr?
The full example uses multiple files, so for the sake of this question I will reduce it here. The full worki...
463035818_is_not_an_ai
Votes: 0
Answers: 1
Cannot use template function type in constant context with MSVC 1930+ (Visual Studio 2022)
When I have a function template like this:
template<class T>
T func(T bar) {
return bar;
}
I cannot use its instantiation in constant context with the latest MSVC compiler:
constexpr bool b...
Fido
Votes: 0
Answers: 0