#pragma once #include "Proxy.h" namespace crepe { template Proxy::Proxy(ValueBroker broker) : broker(broker) {} template Proxy & Proxy::operator=(const T & val) { this->broker.set(val); return *this; } template Proxy & Proxy::operator=(Proxy & proxy) { this->broker.set(T(proxy)); return *this; } template Proxy::operator const T &() { return this->broker.get(); } } // namespace crepe