Closed ahmedtd closed 11 years ago
Thanks, clearly I never had tests for setting these options directly (always going via the helper functions).
Wow, thanks for the quick response. I'm loving the bindings, by the way.
Your welcome. If you spot any other bugs, or have suggestions feel free to raise issues (or code patches)
When setting a socket option like:
the C++ standard requires that the bool override for set be considered before the std::string override. This causes the above code to fail by throwing an exception that complains that a bool option is being set with a non-bool value.
An explicit override for const char * will capture the literal properly.