Circular dependency

The Partridge Family were neither partridges nor a family. Discuss.
User avatar
cyboryxmen
Posts: 190
Joined: November 14th, 2014, 2:03 am

Re: Circular dependency

Post by cyboryxmen » November 1st, 2016, 2:14 pm

Moments like these only make me want the Module feature to come to C++ sooner. Get on it ISO C++ Committee(still love what you're doing with c++ 17. The Concepts feature would really help to get people to try out metaprogramming more)!
Zekilk

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Circular dependency

Post by albinopapa » November 1st, 2016, 9:32 pm

cyboryxmen wrote: The Concepts feature would really help to get people to try out metaprogramming more)!
What do you know about Concepts? What are they?

From what I can dig up, they are just a way to enforce template parameter types. The biggest example I have seen is EqualityComparable<A, B>. If the types you pass in to EqualityComparable<A, B> don't have an operator== overload, then you get a compilation error.

Is there anything else, or is that all Concepts covers?
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

Post Reply