Cristian Morales Vega
Cristian Morales Vega
> can we somehow handle operation_abortion in on_read before on_close event? No. https://www.boost.org/doc/libs/1_76_0/libs/beast/doc/html/beast/ref/boost__beast__websocket__stream/async_close.html > Send a websocket close control frame asynchronously. https://www.boost.org/doc/libs/1_76_0/libs/beast/doc/html/beast/ref/boost__beast__websocket__stream/async_read.html > A close frame is received. In this...
``` ~() { while(ref) { sleep(); } } ``` If the thing calling the destructor is the same thing calling io_context.run() then the completion handlers will never run, ref-- will...
> after closing the socket https://www.boost.org/doc/libs/1_76_0/libs/beast/doc/html/beast/ref/boost__beast__websocket__stream/async_close.html doesn't "close the socket"; it "Send a websocket close control frame", it completes when "The close frame finishes sending". It's the equivalent of doing...
> > b) The constant indentation level of targetB and targetD > > Hm... I'm a bit confused. If I understand correctly, what you're requesting here is already the case....
* Trompeloeil v34 (plus two of the three commits master has over v34, they are mine :-p ) * clang-tidy 8.0.0 * /usr/share/clang/run-clang-tidy.py -header-filter '.*' ``` --- Checks: '*,-fuchsia-default-arguments,-fuchsia-overloaded-operator,-fuchsia-trailing-return,-llvm-header-guard,-google-runtime-references,-clang-diagnostic-*,-readability-magic-numbers' WarningsAsErrors:...
Latest master. This code ``` $ cat trompeloeil_test.cpp #include "trompeloeil.hpp" #include struct to_mock { #if 1 virtual void func1(std::function) = 0; #else virtual void func1(int) = 0; #endif }; struct...
Are you saying there is something wrong with to_mock and it should be changed *anyway*? The semantics of the real "func1" I'm trying to mock are to take a callable...
So you think in this case ``` --- trompeloeil.hpp +++ trompeloeil.hpp @@ -254,7 +254,7 @@ #define TROMPELOEIL_PARAM_LIST0(func_type) #define TROMPELOEIL_PARAM_LIST(num, func_type) \ - TROMPELOEIL_CONCAT(TROMPELOEIL_PARAM_LIST, num)(func_type) + TROMPELOEIL_CONCAT(TROMPELOEIL_PARAM_LIST, num)(func_type) /* NOLINT(performance-unnecessary-value-param) */...
The error message says `the parameter 'p1' is copied for each invocation but only ***used*** as a const reference; consider making it a const reference`. It's not complaining just because...
FWIW this is the expanded form of my original sample: ``` ::trompeloeil::return_of_t< decltype(::trompeloeil::nonconst_member_signature(&trompeloeil_interface_name::func1))::type> func1(::trompeloeil::param_list_t< decltype(::trompeloeil::nonconst_member_signature(&trompeloeil_interface_name::func1))::type, 0> p1) override { using T_func1 = typename std::remove_reference::type; using pmf_s_t = typename ::trompeloeil::signature_to_member_function< T_func1,...