Forgive my misconception. Most prototype predict() methods in ml.hpp return float. I modeled my code accordingly. Can you please tell me why do you want the predict() return void?