Пример #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}}
    }
Пример #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;
}
Пример #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;
}
Пример #4
0
 explicit C(T&& value)
 {
     init(std::forward<T>(value), Overload());
 }