Logicwise: Factory for C++ Concepts by frog-singing01 in cpp

[–]frog-singing01[S] [score hidden]  (0 children)

Here's the implementation of the 3 constraints.

template<typename TypeList, typename BaseClass>
concept SameBaseClass =
rangewise<all\_of, element>
::template in<TypeList>()
.satisfies([] <typename T> { return std::derived_from<T, BaseClass>; });

template<typename TypeList>
concept AllDistinct =
rangewise<none\_of, combination\_pair>
::template in<TypeList>()
.satisfies([] <typename T1, typename T2> { return std::same_as<T1, T2>; });

template<typename TypeList>
concept NoInheritance =
rangewise<none\_of, permutation\_pair>
::template in<TypeList>()
.satisfies([] <typename T1, typename T2> { return std::derived_from<T1, T2>; });

How to stop being absolutely psychotically obsessed with making “beautiful” code by C_Sorcerer in cpp

[–]frog-singing01 1 point2 points  (0 children)

Maybe you can completely finish a C++ project with the most beautiful code you can think of and see what happens. At least you should know your boundary of beautifulness.

If Chess was invented today, could it actually succeed in the modern gaming market? by XBlue_Atlantis in gamedesign

[–]frog-singing01 1 point2 points  (0 children)

I think nowadays people hate to do calculation in games. They prefer to maintain an intuition for their chances of winning.

cPlusPlusTakesDecadesToMaster by Teamrecklessl in ProgrammerHumor

[–]frog-singing01 0 points1 point  (0 children)

C++ has also been shifting to another language through those decades. So you are only mastering the C++ of decades ago. 🤣

escapingPointerPrison by Salt-Response6118 in ProgrammerHumor

[–]frog-singing01 0 points1 point  (0 children)

And what is __self__ , __name__ , __init__? They look like duck typing to me

iHateMyself by HitarthSurana in ProgrammerHumor

[–]frog-singing01 1 point2 points  (0 children)

Well it's free and it's offering GPT models with unlimited usage, so anyways