We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Most of us will use two Message members for the text and some sort of id, I guess.
Little caveat: don't declare them const !
The locked code uses 'sort', which calls 'move', and the later requires all members to be non-const (else you get some long and cryptic complaint from the compiler).
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Messages Order
You are viewing a single comment's thread. Return to all comments →
Most of us will use two Message members for the text and some sort of id, I guess.
Little caveat: don't declare them const !
The locked code uses 'sort', which calls 'move', and the later requires all members to be non-const (else you get some long and cryptic complaint from the compiler).