Move constructor and const member variables

This is why you should not declare said member variables const. const member variables usually serve no purpose. If you don’t want users to mutate the FILE*, then don’t provide them with functions to do that, and if you want to stop yourself from mutating it by accident, then mark your functions const. However, do not make member variables themselves const – because then you run into fun when you start to use move or copy semantics.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)