microsoft / Azure-DCAP-Client

Interfaces between SGX SDKs and the Azure Attestation SGX Certification Cache.
MIT License
60 stars 45 forks source link

src/Linux/local_cache.cpp: add missing `<stdexcept>` include #197

Open trofi opened 8 months ago

trofi commented 8 months ago

Without the change build fails on gcc-13 as:

local_cache.cpp: In function 'void throw_if(bool, const std::string&)':
local_cache.cpp:40:20: error: 'runtime_error' is not a member of 'std'
   40 |         throw std::runtime_error(error);
      |                    ^~~~~~~~~~~~~
local_cache.cpp:17:1: note: 'std::runtime_error' is defined in header '<stdexcept>'; did you forget to '#include <stdexcept>'?
   16 | #include <sys/file.h>
  +++ |+#include <stdexcept>
   17 | #include <sys/stat.h>
msft-gumunjal commented 5 months ago

I will take a look and update this.

pbeza commented 5 months ago

@msft-gumunjal any update? I need to hack around my project without this fix. :/// Why hasn't it been merged in the last three months? It's super easy to reproduce and fix, after all!