void func(char**& arg1); int main() { char* container[3] = { "First", "Second", "Third" }; char** pCon = &container[0]; func(pCon); // This works func(&container[0]); // no known conversion from char** to char**& }
I am clearly missing something. My logic says these two should be the same.
You cannot bind a non-constant link to a temporary one, for example, you cannot bind a temporary value received from an address operator to a non-constant link.
Source: https://habr.com/ru/post/952466/More articles:How to change the "outdated packaged application" to "extension"? - google-chrome-extensionPrintWriter vs PrintStream vs OutputStreamWriter timecosts - javaMySQL foreign key on one table - mysqlUsing the same controller for all CRUD operations (Rails-like) - angularjsSQL Server trigger to delete one record from multiple tables - triggersHow to change the application theme from the usual "Void" to "Master / Detailed flow" - javaInstall Python packages - IronPython - pythonHow to iterate over an array in batch mode for key = value item - arraysArrayList automatically adds null elements - javaEngineering / factory for directive - angularjsAll Articles