static const T vs static T const

E

er

hi all,

probably a simple question: i'm used to static const T, i can also
understand static const T* const, but i'm not sure what this, for
example, means:

template <class T>
struct my_struct
{
static bool const value = false;

};

thanks!
 
A

acehreli

probably a simple question: i'm used to static const T, i can also
understand static const T* const, but i'm not sure what this, for
example, means:
static bool const value = false;

'static' doesn't add anything to the question. It is not different
than the fact that there is no difference between these two:

Type const o;
const Type o;

So it's the same thing.

Ali
 
S

sk_usenet

er said:
hi all,

probably a simple question: i'm used to static const T, i can also
understand static const T* const, but i'm not sure what this, for
example, means:

template <class T>
struct my_struct
{
static bool const value = false;

Same as static const bool val = ..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top