Error: No instance of constructor matches the argument list
Your problem with the first version is that your compiler is trying to prevent a bug. Your problem with the second version is that you outsmarted your compiler and successfully managed to create a bug. Given your constructor, you want to store pointers to the float values that are passed by reference. Since your second … Read more