Advertisement

opImplConv not respected by shift operators

Started by October 24, 2021 04:27 PM
1 comment, last by WitchLord 3 years, 1 month ago

Given the following class:

class foo {
uint opImplConv() const { return 0; }
}

Any shift operator fails with an “illegal operation” error when the class is on the left side of the operator. foo >> 1, foo << 1, foo >>> 1 all fail but every other operator I've tried works fine.

Thanks for letting me know. I'll look into this.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement