+ 5

only constructors take member initializers

void Set(int Data) : Dat(Data) {} Output: only constructors take member initializers

24th Aug 2017, 7:05 AM
Marek KĂŒthe
Marek KĂŒthe - avatar
1 Answer
0
You are using an initializer list (the thing that starts with a colon) on something that is not a constructor.
24th Aug 2017, 11:50 AM
marit vandijk