Exemplo n.º 1
0
    void ImplicitThisCapture() {
      [](){(void)Member;}; // expected-error {{'this' cannot be implicitly captured in this context}}
      [&](){(void)Member;};

      [this](){(void)Member;};
      [this]{[this]{};};
      []{[this]{};};// expected-error {{'this' cannot be implicitly captured in this context}}
      []{Overload(3);};
      []{Overload();}; // expected-error {{'this' cannot be implicitly captured in this context}}
      []{(void)typeid(Overload());};
      []{(void)typeid(Overload(.5f));};// expected-error {{'this' cannot be implicitly captured in this context}}
    }
Exemplo n.º 2
0
int HVS_B0307::ReadOverload(bool* over)
{
	__u16 code;
	int rc=ReadCode(&code);
	if ( rc&CAMAC_CC_ERRORS ) return rc;
	*over = Overload(code);
	return rc;
}
Exemplo n.º 3
0
int HVS_B0307::ReadState(bool* s, bool* over)
{
	__u16 code;
	int rc=ReadCode(&code);
	if ( rc&CAMAC_CC_ERRORS ) return rc;
	*s = On(code);
	if ( over ) *over = Overload(code);
	return rc;
}
Exemplo n.º 4
0
Arquivo: main.cpp Projeto: CCJY/coliru
 explicit C(T&& value)
 {
     init(std::forward<T>(value), Overload());
 }