Is there a way to make passing by reference, and passing by value explicit in the function call?

前端 未结 7 1676
北荒
北荒 2021-02-18 13:43

If you were to look at this code,

int x = 0;
function(x);
std::cout << x << \'\\n\';

you would not be able to verify through any me

7条回答
  •  我寻月下人不归
    2021-02-18 14:10

    If you use MS VC++ then maybe it will be useful information about source-code annotation language (SAL) http://msdn.microsoft.com/ru-ru/library/hh916383.aspx

提交回复
热议问题