You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
noalias means that a function call doesn't modify or reference visible global state and only modifies the memory pointed to directly by pointer parameters (first-level indirections).
So it is analogous to gcc/clang __attribute__((const)). Currently HEDLEY_CONST does not generate it.
The text was updated successfully, but these errors were encountered:
According to the gcc docs. const functions should never take pointer or, in C++, reference arguments.
This seems to conflict with msdn noalias docs noalias means that a function call doesn't modify or reference visible global state and only modifies the memory pointed to directly by pointer parameters (first-level indirections).
These appear to be incompatible, im not sure HEDLEY_CONST would be a correct place for __declspec(noalias)
Microsoft's
__declspec(noalias)
is documented as:So it is analogous to gcc/clang
__attribute__((const))
. CurrentlyHEDLEY_CONST
does not generate it.The text was updated successfully, but these errors were encountered: