- Macros are powerful tools if used in the right way. However, the following aspects limit the usage of macros. (1) You cannot debug macros; (2) Macro expansion can lead to strange side effects; (3) Macros have no namespace, so if you have a macro that clashes with a name used elsewhere, you get macro replacements where you didn't want them, and this usually leads to strange error messages; and (4) Macros may affect things you are not aware of. For further details, please go to https://stackoverflow.com/questions/14041453.
- A class/function template refers to a kind of template used to generate template classes/functions. It's just a template but not a class/function, and hence the compiler does not generate any object code for it. A template class/function is an instance of a class/function template. Since it is a class/function, the corresponding object code...
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia