nowfound

Dev tools · April 5, 2019

Nameof operator for modern C++

C++17 nameof operator to obtain name variable, type and enum

Nameof operator for modern C++ launched on April 5, 2019 with 2 votes. The site was still online in September 2026, 7 years on.

What it does

Header-only C++17 library provides nameof macros and functions to obtain simple name of variable, type, function, macro, and enum.

Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum - Neargye/nameof

Does a similar job

all alternatives →
  • Nameof Operator for Modern C++2019 · github.com · ▲65

    Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum - Neargye/nameof

  • A dbg(...) macro for C++2019 · github.com · ▲162

    A dbg(…) macro for C++. Contribute to sharkdp/dbg-macro development by creating an account on GitHub.

  • A Fast, Malloc-Free C++14 Json Parser and Encoder2014 · github.com · ▲98

    Meta programming utilities for C++14. Merged in matt-42/lithium - matt-42/iod

  • Match(it): A C++17 pattern-matching library with lots of good stuffs2022 · github.com · ▲85

    A lightweight single-header pattern-matching library for C++17 with macro-free APIs. Try it at https://godbolt.org/z/8YMr8Kz8j

  • Single-Header Profiler for C++172025 · github.com · ▲68

    Morning HN. I often found myself wondering "how much does this code segment take in terms of total runtime" and it's often quite annoying to figure out with optimizations enabled, especially when working on something new or testing someone else's implementation without the proper tooling set up. Wanted to have a single include lib that would allow us to write something like: ``` PROFILE("Loop 1") for (...) // some work ``` and have the next expression automatically record time & dump results to a table. Wrote a few macros to do exactly that a few months back, but they were…

  • Beautiful Type Erasure with C++26 ReflectionJul 2026 · ryanjk5.github.io · ▲117

    Try it on Compiler Explorer: https://godbolt.org/z/91dj5jeGW Check out the source code: https://github.com/RyanJK5/rjk-duck

More dev tools this month

the category →
  • /dev/null▲490

    a social network for devs

    Dev tools · 4d ago · dev-null.sh

  • open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.

    Dev tools · 28d ago · github.com

  • Contribute to reladraw/reladraw development by creating an account on GitHub.

    Dev tools · 26d ago · github.com

  • OpenBot▲362

    Grok Bot alternative: free, local, open-source, multiplayer

    Dev tools · 24d ago · openbot.run

  • Contribute to oosexgang/hackios-xnu-kernel development by creating an account on GitHub.

    Dev tools · 13h ago · github.com

  • Talanoa▲346

    Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…

    Dev tools · 21d ago · talanoa.email

Source: Product Hunt launch ↗

Launched alongside, April 2019

the whole month →