opImplConv not respected by shift operators

Started by
1 comment, last by WitchLord 2 years, 6 months 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.

Advertisement

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