development of arrays?

closed account (Dy7SLyTq)
so i understand the value of keeping built-in arrays in c++, for things like compatibilty with old software, but if std::vector is significantly better, why still add features to arrays? i dont know if there are any others, but this is in regards to c++11's constexpr.
constexpr is not a feature of arrays.
closed account (Dy7SLyTq)
http://en.wikipedia.org/wiki/C%2B%2B11#constexpr_.E2.80.93_Generalized_constant_expressions
Is pavement a feature of cars? I mean, after all, you can make use of pavement while driving one.
I don't think that there are features added to basic arrays.

The built-in arrays still have their use. For instance if you want to write a csv file where you want an array of names for the header. I.e. whenever you need a bunch of data that doesn't change during runtime
closed account (Dy7SLyTq)
@cire i didnt properly explain myself before going to sleep. i meant what would be the point of implementing it into array subscripts?
closed account (3qX21hU5)
They are just using arrays as a example to show how a function can be used as a constant expression. It does not mean it is just for arrays...

C++11 introduced the keyword constexpr, which allows the user to guarantee that a function or object constructor is a compile-time constant.[9] The above example can be rewritten as follows:


Not sure where in that it is a array feature
Last edited on
closed account (Dy7SLyTq)
i shouldnt have said feature
closed account (Dy7SLyTq)
but i see what zereo and to a point cire mean. i have a new question. is there anywhere i can read up on alternative function syntax from c++11
closed account (3qX21hU5)
Here is the draft for C++11 dig in ;P http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3242.pdf
closed account (Dy7SLyTq)
thank you
Do yourself a favor and don't read through the entire 1300 page standard for new syntax :p Just Google for what you want to know.

http://lmgtfy.com/?q=C%2B%2B11+function+syntax
closed account (Dy7SLyTq)
ok
closed account (3qX21hU5)
Ohhh cmon modshop :p
Last edited on
Lol, I don't like to see people unnecessarily suffer... sometimes :p
Topic archived. No new replies allowed.