It should be
cass_future_set_callback(future, on_result, NULL);
instead of
cass_future_set_callback(on_result, NULL);
if I am not mistaken.
Not a big deal but can be confusing for someone.
To unsubscribe from this group and stop receiving emails from it, send an email to cpp-driver-us...@lists.datastax.com.