Beginners - January 2025

by zzzhhh
Should the subscript "opt" be dropped in the definition of "array of N T" in the standard?
 
This is the definitive syntax of "array of N T" in C++ Standard https://eel.is/c++draft/dcl.array#1 : D1 [ constant-expression_opt ] ... I think the subs...
[3 replies] Last: Hi Is it because the array bound may be omitted when there are initia... (by TheIdeasMan)
by zzzhhh
Where is const mandated in the Standard when binding an lvalue reference to an rvalue?
 
I'm reading the part of the Standard about initializing an lvalue reference from an rvalue (https://eel.is/c++draft/dcl.init.ref#5.3 ). I know a reference to co...
[1 reply] : I don't think I've ever actually read the standard in over 30 years of... (by seeplus)
by zzzhhh
Which item stipulates that A() is a prvalue?
 
class A { ... }; A(); This webpage lists all possible forms of prvalue expressions: https://en.cppreference.com/w/cpp/language/value_cat...
[2 replies] Last: I believe that A() is a function-style cast expression and is covered ... (by mbozzi)
  Archived months: [dec2024]

This is an archived page. To post a new message, go to the current page.