Download build/_deps/catch2-src/include/internal/catch_errno_guard.cpp from camenduru/thrust: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/camenduru/thrust/resolve/main/build/_deps/catch2-src/include/internal/catch_errno_guard.cpp
- Command line
-
hf download hf://camenduru/thrust/build/_deps/catch2-src/include/internal/catch_errno_guard.cpp
-
curl -L -o catch_errno_guard.cpp https://huggingface.co/camenduru/thrust/resolve/main/build/_deps/catch2-src/include/internal/catch_errno_guard.cpp
385 Bytes
| /* | |
| * Created by Martin on 06/03/2017. | |
| * | |
| * Distributed under the Boost Software License, Version 1.0. (See accompanying | |
| * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
| */ | |
| namespace Catch { | |
| ErrnoGuard::ErrnoGuard():m_oldErrno(errno){} | |
| ErrnoGuard::~ErrnoGuard() { errno = m_oldErrno; } | |
| } | |