Click here to Skip to main content
15,892,643 members
Articles / Programming Languages / C++11

The One Definition Rule in C++11 and C++14: Constant Expressions and Inline Functions

Rate me:
Please Sign up or sign in to vote.
4.71/5 (13 votes)
27 Apr 2014CPOL8 min read 32.6K   117   12  
Problems with the one definition rule; examples of how to use constant expressions in inline functions.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions