MCPcopy Create free account
hub / github.com/FidoProject/Fido / set

Method set

tests/catch.h:4073–4077  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4071 struct BoundUnaryMethod : IArgFunction<C>{
4072 BoundUnaryMethod( void (C::*_member)( M ) ) : member( _member ) {}
4073 virtual void set( C& p, std::string const& stringValue ) const {
4074 typename RemoveConstRef<M>::type value;
4075 convertInto( stringValue, value );
4076 (p.*member)( value );
4077 }
4078 virtual void setFlag( C& p ) const {
4079 typename RemoveConstRef<M>::type value;
4080 convertInto( true, value );

Callers

nothing calls this directly

Calls 1

convertIntoFunction · 0.85

Tested by

no test coverage detected