By estherschindler
via blog.smartbear.com
Published: Dec 19 2012 / 14:24
constexpr is a new C++11 keyword that rids you of the need to create macros and hardcoded literals. It also guarantees, under certain conditions, that objects undergo static initialization. Danny Kalev shows how to embed constexpr in C++ applications to define constant expressions that might not be so constant otherwise.
Add your comment
Voters For This Link (11)
-
estherschindler -
sv117926 -
Baustin213 -
kendalpeiguss -
Adam_Barker -
rick.decosta -
ryanaxford -
roblimo -
bakercom1 -
mswatcher -
Topnotch