Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RSS BotMB to Lobste.rsEnglish · 1 month ago

C++26: constexpr virtual inheritance

www.sandordargo.com

external-link
message-square
0
link
fedilink
5
external-link

C++26: constexpr virtual inheritance

www.sandordargo.com

RSS BotMB to Lobste.rsEnglish · 1 month ago
message-square
0
link
fedilink
constexpr has come a long way since its introduction in C++11. Back then, constexpr functions were extremely restricted and could essentially contain only a single return statement. C++14 relaxed those restrictions, allowing local variables, loops, and multiple statements. C++20 was another major milestone, bringing support for constexpr dynamic allocation, enabling types such as std::string and std::vector to become usable in constant evaluation, and allowing constexpr virtual functions. C++23 further relaxed the rules by permitting static local constexpr variables and try blocks inside constexpr functions. C++26 continues the trend, adding support for exception handling during constant evaluation and several other improvements…

Comments

alert-triangle
You must log in or # to comment.

Lobste.rs

lobsters

Subscribe from Remote Instance

You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !lobsters@lemmy.bestiver.se
lock
Community locked: only moderators can create posts. You can still comment on posts.

RSS Feed of lobste.rs

Source of the RSS Bot

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 17 users / day
  • 132 users / week
  • 401 users / month
  • 1.69K users / 6 months
  • 2 local subscribers
  • 391 subscribers
  • 15.3K Posts
  • 1.06K Comments
  • Modlog
  • mods:
  • patrick
  • RSS Bot
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org