Raising a value to a power

Some programming languages allow you to raise whole-number types to a power (example:  four squared, six cubed, nine to the fourth power, etc.).

That operation is not allowed by the C++ specification for the type short.

If you need to do that operation with a data value of the short type, you must find another way to do it.

(This would typically be done by invoking a function designed for that purpose.)