Skip to content

Instantly share code, notes, and snippets.

View mov-rax's full-sized avatar
🏠
Working from home

Julian mov-rax

🏠
Working from home
View GitHub Profile
@mov-rax
mov-rax / option.cpp
Created March 10, 2022 18:52
Undefined References
#include "option.hxx"
#define _OPDEF2(name, op) template<typename T> template<typename R> \
auto Option<T>:: name (R val){ \
return this op val; \
}
#define _OPDEF(op) template<typename T> template<typename R>\
auto Option<T>::operator op(R const& val){\
if (!empty)\