1

in the symbol.hpp of the CDT I see the following definition:

constexpr symbol_code code() const { return symbol_code{value >> 8}; }

but I need a little help to understand... the method references symbol_code but the class that defines it (symbol) doesn't declare any such property. symbol_code is a class, so presuming it refers to the class definition, what is the meaning of symbol_code{...}?

I don't understand how this works

  • 2
    C11 initialization syntax – Reason Lee Jan 25 '19 at 8:48
  • I realise I should have asked this in a C++ forum instead. thanks – ekkis Jan 25 '19 at 22:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.