October 24th, 2013, 02:24 PM
Bingo! It worked a treat. An by giving the "WorkAround" struct a constructor that takes the function pointer, I was actually able to just call the function as before, by directly passing the function...
October 24th, 2013, 07:24 AM
Ah I see, I might be best sticking to the Visual C++ section then :)
October 24th, 2013, 05:56 AM
That's correct, I am willing to specify the types per function function call. That work around is a nice idea, thanks for that :) I'll give it a try later!
I eventually intend to wrap this whole...
October 24th, 2013, 05:45 AM
I may have misunderstood but are you looking for different default values per type? If so, this could be achieved by implementing the constructor for every type you intend to use with this class:
October 24th, 2013, 03:40 AM
I'm new here, hope I have posted to the appropriate place. I have been experimenting with variadic templates with the aim of caching a call to a class method by storing away the...