I makes games and stuff.

May
22
comment Initialize a string object in a struct
It's worth noting that the second example here depends on the order of declaration of the struct members. If they are moved around, or if new members are added or removed, the initialization may silently break.
May
22
comment Initialize a string object in a struct
Why do you need to use memset? Why not use a normal constructor? The line strMyStruct x1; is already initializing the strings.
May
22
comment Exceeding C++'s largest integer datatype
The largest integer in C++ can be found in <cstdint> as std::intmax_t. However, you probably want to use a bigint library.
May
21
revised enable_if cannot be used to disable this declaration
added 146 characters in body
May
21
revised enable_if cannot be used to disable this declaration
added 139 characters in body
May
21
comment enable_if cannot be used to disable this declaration
@black Even in the original example, more_than_99<0,void> would get around the enable_if. I'm not sure if it's possible to prevent malicious instantiation.
May
21
revised enable_if cannot be used to disable this declaration
added 553 characters in body
May
21
answered enable_if cannot be used to disable this declaration
May
21
comment enable_if cannot be used to disable this declaration
enable_if isn't usually used to disable class types. What are you trying to accomplish here? more_than_99<500> seems to work fine.
May
21
revised Odd Template behaviour when T == bool
added 65 characters in body
May
21
answered Odd Template behaviour when T == bool
May
20
revised Is inline forced when method body is in header file?
added 9 characters in body
May
20
revised Is inline forced when method body is in header file?
added 261 characters in body
May
20
revised Is inline forced when method body is in header file?
added 261 characters in body
May
20
revised Is inline forced when method body is in header file?
added 261 characters in body
May
20
answered Is inline forced when method body is in header file?
May
19
awarded Yearling
May
19
awarded Yearling
Mar
31
awarded Autobiographer
Mar
31
awarded Autobiographer
1 2 3 4 5