Emile Cormier

Results 281 comments of Emile Cormier

Just want to mention (for what it's worth) that CBOR has this feature: https://datatracker.ietf.org/doc/html/rfc8949#section-3.2

I also want to mention that the lack of this feature makes it impossible to transcode from JSON to MsgPack "on the fly" without having to completely parse the JSON...

This proposal does not specify the binary format of the payload: two's compliment, signed magnitude, or one's compliment. Most arbitrary-precision integer libraries use signed magnitude. If signed magnitude were to...

This proposal does not specify the binary format of the payload: two's compliment, signed magnitude, or one's compliment. Most arbitrary-precision integer libraries use signed magnitude. If signed magnitude were to...

> It would also allow such higher-level networking libraries to expose known types in its API, instead of templatized function arguments. Upon further thought, the API would still need to...

> Example found here: That example covers most of my intended usages nicely. Thanks! Another use case is handlers that are stored for a long duration and executed whenever an...

@chriskohlhoff Would it be possible to add an `any_completion_handler` constructor overload that takes a fallback executor? Something like: ```c++ template any_completion_handler(H&& h, E&& e) : fn_table_(&detail::any_completion_handler_fn_table_instance::value), impl_(detail::any_completion_handler_impl::create( (get_associated_executor)(h, std::forward(e)), (get_associated_cancellation_slot)(h),...

> Would it be possible to add an any_completion_handler constructor overload that takes a fallback executor? @chriskohlhoff I think I can (and probably should) refactor my code so that the...

@chriskohlhoff I'm getting compile errors when doing: ```c++ boost::asio::post( exec, std::bind(std::move(f), std::forward(args)...) ); ``` where `f` is an instance of `any_completion_handler`. I'll write a minimal example that duplicates the problem,...

Narrowed down the problem to `std::result_of` not working in the `std::bind` implementation. Now looking to see whether `std::result_of` can be extended to user types.