C++ was first standardized in 1998, so it predates the addition of flexible array members to C (which was new in C99). There was a corrigendum to C++ in 2003, but that didn’t add any relevant new features. The next revision of C++ (C++2b) is still under development, and it seems flexible array members still aren’t added to it.
Related Contents:
- Array of zero length
- How do I tokenize a string in C++?
- When should you use a class vs a struct in C++?
- Is there a performance difference between i++ and ++i in C++?
- How does delete[] “know” the size of the operand array?
- Why C++11 in-class initializer cannot use parentheses?
- c++11 Return value optimization or move? [duplicate]
- C++ new int[0] — will it allocate memory?
- What are all the member-functions created by compiler for a class? Does that happen all the time?
- Why does a static data member need to be defined outside of the class?
- What’s a proper way of type-punning a float to an int and vice-versa?
- Why does C++11’s lambda require “mutable” keyword for capture-by-value, by default?
- Move assignment operator and `if (this != &rhs)`
- What can I use instead of the arrow operator, `->`?
- What is difference between instantiating an object using new vs. without
- Compile time string hashing
- Rounding up to the nearest multiple of a number
- Using C++ library in C code
- Object destruction in C++
- C++ standard: dereferencing NULL pointer to get a reference? [duplicate]
- Why does stringstream >> change value of target on failure?
- “invalid use of incomplete type” error with partial template specialization
- Why does passing object reference arguments to thread function fails to compile?
- C++, Free-Store vs Heap
- How do I concatenate multiple C++ strings on one line?
- In STL maps, is it better to use map::insert than []?
- Building multiple executables with similar rules
- What exactly is the L prefix in C++?
- when g++ static link pthread, cause Segmentation fault, why?
- Overloading ++ for both pre and post increment
- Colorizing text in the console with C++
- What range of values can integer types store in C++
- Multiple dispatch in C++
- Should I worry about the alignment during pointer casting?
- Does moving a vector invalidate iterators?
- C++11 equivalent to boost shared_mutex
- what is return type of assignment operator?
- Multiple preincrement operations on a variable in C++(C ?)
- Template specialization and enable_if problems [duplicate]
- Extending enums in C++?
- Linking to MSVC DLL from MinGW
- How to disable buffering on a stream?
- static member initialization for specialized template class
- Why should I use std::async?
- What information does GCC Profile Guided Optimization (PGO) collect and which optimizations use it?
- Multiple Inheritance from two derived classes
- How does the linker handle identical template instantiations across translation units?
- Two phase name lookup for C++ templates – Why?
- 2D Diamond (isometric) map editor – Textures extended infinitely?
- What is the difference between #define and const? [duplicate]