- 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...
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand