Top "Member-functions" questions

A function declared and/or defined within a class.

what does "error : a nonstatic member reference must be relative to a specific object" mean?

int CPMSifDlg::EncodeAndSend(char *firstName, char *lastName, char *roomNumber, char *userId, char *userFirstName, char *userLastName) { ... return 1; } extern "C" { __declspec(dllexport) …

c++ dll compiler-errors member-functions
Operator overloading : member function vs. non-member function?

I read that an overloaded operator declared as member function is asymmetric because it can have only one parameter and …

c++ operator-overloading member-functions friend-function non-member-functions
error: default argument given for parameter 1

I'm getting this error message with the code below: class Money { public: Money(float amount, int moneyType); string asString(bool …

c++ function member-functions default-arguments
Can C++ struct have member functions?

I was pretty confused about the difference between struct and class as I seemed to see them used for pretty …

c++ class struct member-functions
How to directly bind a member function to an std::function in Visual Studio 11?

I can easily bind member functions to a std::function by wrapping them with a lambda expression with capture clause. …

c++ c++11 member-functions std-function
What are all the member-functions created by compiler for a class? Does that happen all the time?

What are all the member-functions created by compiler for a class? Does that happen all the time? like destructor. My …

c++ member-functions c++-faq
Get memory address of member function?

How do I get the absolute address of a member function in C++? (I need this for thunking.) Member function …

c++ visual-c++ memory-address member-functions
C++ typedef member function signature syntax

I want to declare type definition for a member function signature. Global function typedefs look like this: typedef int (function_…

c++ typedef member-functions method-signature
static member functions and thread-safety

Objects and variables created in a static member function are not considered 'local' as they would in a member function, …

c++ multithreading static member-functions
C++ GDB breakpoint for member functions

I am having trouble with using GDB on my c++ program. I want to set up a break point for …

c++ gdb breakpoints member-functions