What's the most hilarious use of operator overloading you've seen?

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Open-Source Vulkan C++ API

    Open-Source Vulkan C++ API

  • For a real-life example: consider the vk::raii namespace of Vulkan-Hpp, where the developers have posted examples. The vk::raii::su namespace has a bunch of free functions that one might think are associated with a Vulkan instance/object (in fact, the Vulkan Tutorial does implement them as member functions), but they are much nicer when used as pure functions. It keeps the class/struct definition itself nice and clean.

  • compile-time-regular-expressions

    Compile Time Regular Expression in C++

  • operator"" can be used in a similar way to expression templates (DSLs), where the type of the resulting expression is dependent on the string contents. For example ctre makes use of this to build efficient regular expression parsers, and kumi uses this in conjunction with operator[] to make tuple indexing quite elegant

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • kumi

    C++20 Compact Tuple Tools

  • operator"" can be used in a similar way to expression templates (DSLs), where the type of the resulting expression is dependent on the string contents. For example ctre makes use of this to build efficient regular expression parsers, and kumi uses this in conjunction with operator[] to make tuple indexing quite elegant

  • FizzBuzz Enterprise Edition

    FizzBuzz Enterprise Edition is a no-nonsense implementation of FizzBuzz made by serious businessmen for serious business purposes.

  • And there's a reason why FizzBuzzEnterpriseEdition is a meme. OOP where OOP shouldn't exist is what is causing unnecessary pain to everyone.

  • hissp

    It's Python with a Lissp.

  • If you want Python to be as customizable as Lissp, check out Hissp (and Hebigo).

  • hebigo

    蛇語(HEH-bee-go): An indentation-based skin for Hissp.

  • If you want Python to be as customizable as Lissp, check out Hissp (and Hebigo).

  • IdOp

    C++ Custom Operator Library

  • github was only a year old when I made this and it didn't become popular until a few years later. I do have it there but all the docs are hosted on my site https://github.com/cogwheel/IdOp

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts