#pragma once #include namespace saw { namespace rmt { struct OpenCl {}; } template<> class remote_api { private: SAW_FORBID_COPY(remote_ctx); SAW_FORBID_MOVE(remote_ctx); public: remote_api(){} error_or create_remote(){ return remote{*this}; } }; template<> struct remote { private: remote_ctx* ctx_; SAW_FORBID_COPY(remote); SAW_FORBID_MOVE(remote); public: remote(remote_ctx& r_ctx): ctx_{&r_ctx} {} /* template error_or foo(); */ }; }