Archive
Posts Tagged ‘CRTP’
whatIsThisFor
Check out this C++ code fragment at the beginning of the MessageBase class template definition:
After staring at it for a few minutes, I was able to distill the essence of the idiom(???) used in the code as:
I can’t figure out why B was designed as a class template and not just a plain ole’ class that simply inherits from A (see below). It reminds me a little of the CRTP idiom but it’s not the same. Would you happen to know what problems it is intended to solve? Is it some template meta-programming technique?
Categories: C++, uml
Tags: c++, class diagram, CRTP, linkedin, programming, Template metaprogramming
Join 737 other subscribers
My BTC Address

13VFoawXgQuFAvZokYjkSMohd4uEGn7abp
agile
bitcoin
Bjarne Stroustrup
bureaucracy
business
c++
C++11
CEO
class diagram
company culture
complexity
concurrency
consciousness
design
ego
Erlang
failure
Fred Brooks
Grady Booch
Herb Sutter
hierarchy
leadership
linkedin
management
manager
organizational behavior
postaday2011
product development
programming
project management
requirements analysis
Russell Ackoff
schedule
Scott Berkun
Scrum
software architecture
software design
software development
spirituality
sysml
systems
systems engineering
systems thinking
thinking
thought
Tony Hsieh
uml
William Livingston
writing
zappos.com
Categories
- bitcoin (149)
- business (200)
- C++ (108)
- C++11 (49)
- C++14 (5)
- C++17 (3)
- Cancer (120)
- Cannabis (5)
- management (593)
- miscellaneous (306)
- Quantum Physics (11)
- spirituality (122)
- sysml (22)
- technical (520)
- uml (53)
Blog Stats
- 373,878 hits


