Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Bh で
volatile int y; Class B { fooB(int); }
A.cppで
foo (int x) { return 2*x; } foo(y); // Here is the issue
これを行おうとしたとき、foo()関数のシグネチャを変更できないため、コンパイルの問題に直面しました。タイトルの私の質問に対する解決策はありますか?
foo()