Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualBitMaster

Posted 05 November 2012 - 02:19 AM

The way you are using it there is no difference.

Also, it should be noted for completeness sake that
class MyClass
{
   SomeType myMemberData = someValue;
};
is valid under C++11, where it is just syntactic sugar for adding :myMemberData(someValue) to every constructor that does not explicitly initialize myMemberData.

#1BitMaster

Posted 05 November 2012 - 02:14 AM

The way you are using it there is no difference.

Also, it should be noted for completeness sake that
class MyClass
{
   SomeType myMemberData = someValue;
};
is valid under C++11, where it is just syntactic sugar for adding :myMemberData(someValue) to every constructor that does not explicitly initialize someMemberData.

PARTNERS