Questions tagged [function-signature]

80 questions
0
votes
3 answers

Return a pointer to function with varying signature based on argument

I've seen this link describing a fixed signature example but would like to know how to write a function that returns a pointer to a function whose signature depends on the argument to the calling function (if it is even possible)? Example: Suppose…
squashed.bugaboo
  • 1,338
  • 2
  • 20
  • 36
0
votes
1 answer

Determine signatures of overloaded member functions

Given some_type with a member function f it is possible to determine f's signature like this (and say let us place it in a tuple): template std::tuple signature_of_impl(R (T::*)(A...)); template…
-1
votes
3 answers

Wrap many C calling functions to single implementation

``I have a requirement that the function call will have different names but all of them should refer to the same definition while executing. For example, i have a function calls like UINT8 vsignal;UINT8 vsignal1;void…
Ambuja
  • 197
  • 1
  • 12
-3
votes
2 answers

No overload for 'Button1_Click' matches delegate 'System.EventHandler'?

I want to display values from db to grid view with image file. While using given below code it shows an error. Help me to find a proper solution. Code: protected void Button1_Click(object sender, GridViewRowEventArgs e1) { …
Vipin
  • 261
  • 6
  • 20
  • 44
-5
votes
1 answer

can someone please explain to me the reason and the logic behind this output?

#include #include using namespace std; class A { int i; public: A(int i) : i(i) { cout << i << endl; } A(const A &o) : i(o.i) { cout << i << endl; } ~A() { cout << i << endl; } friend A f(const A &, A, A…
NatanC
  • 1
  • 1
1 2 3 4 5
6