[Webkit-unassigned] [Bug 136981] ArgumentEncoder::encode does not support long long

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 21 12:56:04 PDT 2014


--- Comment #4 from Alexey Proskuryakov <ap at webkit.org>  2014-09-21 12:56:04 PST ---
There are an encoder and a decoder for duration in ArgumentCoders.h. Are they not matched by the compiler for some reason?

template<typename Rep, typename Period> struct ArgumentCoder<std::chrono::duration<Rep, Period>> {
    static void encode(ArgumentEncoder& encoder, const std::chrono::duration<Rep, Period>& duration)
        encoder << duration.count();

    static bool decode(ArgumentDecoder& decoder, std::chrono::duration<Rep, Period>& result)
        Rep count;
        if (!decoder.decode(count))
            return false;
        result = std::chrono::duration<Rep, Period>(count);
        return true;

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list