FMT 1.2.0
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTScopedSeTranslator.h
Go to the documentation of this file.
1/*
2Copyright (c) 2019 Gouvernement du Québec
3
4SPDX-License-Identifier: LiLiQ-R-1.1
5License-Filename: LICENSES/EN/LiLiQ-R11unicode.txt
6*/
7#ifndef FMTSCOPEDSETRANSLATOR_Hm_included
8#define FMTSCOPEDSETRANSLATOR_Hm_included
9
10#if defined _MSC_VER
11#ifndef NOMINMAX
12 #define NOMINMAX
13#endif
14#include <windows.h>
15#include <eh.h>
16#endif
17
19namespace Exception
20 {
21 // DocString: FMTScopedSeTranslator
26 {
27 public:
28 #if defined _MSC_VER
29 // DocString: FMTScopedSeTranslator(_se_translator_function)
34 FMTScopedSeTranslator(_se_translator_function p_newSETranslator) noexcept;
35 #endif
36 // DocString: ~FMTScopedSeTranslator()
41 // DocString: FMTScopedSeTranslator(const FMTScopedSeTranslator&)
47 // DocString: FMTScopedSeTranslator::operator=
53 FMTScopedSeTranslator& operator = (const FMTScopedSeTranslator& p_rhs) = default;
54 private:
55 #if defined _MSC_VER
56 _se_translator_function m_oldSeTranslator;
57 #endif
58 };
59 }
60
61
62#endif // FMTEXCEPTION_Hm_included
RAII helper that installs a structured exception translator for its scope on MSVC.
Definition: FMTScopedSeTranslator.h:26
~FMTScopedSeTranslator() noexcept
Restore the previous structured exception translator.
Namespace for exceptions and exceptions handling (warnings and errors) thrown by FMT and all exceptio...
Definition: FMTAggregateRedefinition.h:11