About 738,000 results
Open links in new tab
  1. What is the purpose of std::function and how do I use it?

    Sep 22, 2023 · In general, std::function supports storing any function-like object whose arguments can be converted-from its argument list, and whose return value can be converted-to its return value. It is …

  2. How to call C++ function from C? - Stack Overflow

    I know this. Calling C function from C++: If my application was in C++ and I had to call functions from a library written in C. Then I would have used //main.cpp extern "C" void C_library_func...

  3. Where do "pure virtual function call" crashes come from?

    Sep 19, 2008 · They can result if you try to make a virtual function call from a constructor or destructor. Since you can't make a virtual function call from a constructor or destructor (the derived class object …

  4. C++ [Error] no matching function for call to - Stack Overflow

    Nov 11, 2013 · C++ [Error] no matching function for call to Asked 12 years, 1 month ago Modified 12 years, 1 month ago Viewed 250k times

  5. C++ Compiler Error: No matching function for call - Stack Overflow

    Aug 9, 2011 · When you try to call this function passing as the second argument a pointer (not a const pointer) the compiler is unable to create a reference for it, simply because it expects to bind a …

  6. c++ - no matching function for call to ' ' - Stack Overflow

    Feb 27, 2013 · A reference and a pointer are entirely different things. When a function expects a reference argument, you need to pass it the object directly. The reference only means that the object …

  7. c++ - How to call a parent class function from derived class function ...

    In C++, when you have a base class (parent) and a derived class (child), and both classes have a function with the same name, you can call the base class's function from the derived class using the …

  8. How to print a stack trace whenever a certain function is called

    Is there any way to dump the call stack in a running process in C or C++ every time a certain function is called? You can use a macro function instead of return statement in the specific function.

  9. c++ - Can I call a base class's virtual function if I'm overriding it ...

    Again you can determine at runtime which function to call using the object of that class (derived or base).But this requires your function at base class must be marked as virtual.

  10. c++ - Error: a pointer to a bound function may only be used to call the ...

    Jul 21, 2014 · Similar to how you could in, say, python, do instance.FUNCTION_NAME = NEW_FUNCTION where FUNCTION_NAME is a class method and NEW_FUNCTION is a callable, …