Skip to content

Instantly share code, notes, and snippets.

View fdwr's full-sized avatar
🏢
Working at office

Dwayne Robinson fdwr

🏢
Working at office
View GitHub Profile
@jharmer95
jharmer95 / property.hpp
Last active May 14, 2023 17:06
Class emulating properties for C++
#include <iostream>
#include <memory>
#include <type_traits>
#include <utility>
namespace not_std
{
template<typename T>
constexpr T default_getter(const T& val) noexcept
{