$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [review] Review of Outcome (starts Fri-19-May)
From: Peter Dimov (lists_at_[hidden])
Date: 2017-05-19 14:59:45
> Would be nice if we could see that demonstrated on godbolt.org. 
std::error_code f()
{
  return std::error_code( 5, std::system_category() );
}
->
___$ReturnUdt$ = 8                                  ; size = 4
f PROC
        call     std::_Immortalize<std::_System_error_category>
        mov      ecx, DWORD PTR ___$ReturnUdt$[esp-4]
        mov      DWORD PTR [ecx+4], eax
        mov      eax, ecx
        mov      DWORD PTR [ecx], 5
        ret      0
f ENDP