constexpr/const

Mar 17, 2016 at 9:15pm
I am learning about constant types constexpr and const. I am trying to differentiate the uses for these in a practical sense. Can someone give me a simple example of using these correctly?
1
2
  constexpr (type) (name) = (value)
  const (type_ (name) = (value)
Mar 17, 2016 at 9:25pm
Topic archived. No new replies allowed.