this workaround doesn't look efficient
It is. It takes an lvalue reference (a scalar value) and passes that to vec. It is marginally less efficient than vec( substr( ... ), ... );, but not so much that you would be able to detect it.
However, substr can only provide an lvalue for byte-sized units; where vec can provide an lvalue for 8 byte units.
In reply to Re^2: vec overflow?
by BrowserUk
in thread vec overflow?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |