Skip to content

Commit a7aa816

Browse files
committed
Vutils
1 parent 6240185 commit a7aa816

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Test/Sample.Misc.h

+3
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,14 @@ DEF_SAMPLE(Misc)
170170
MessageBoxA(nullptr, "This message box just keep for the program running...", "", MB_OK);
171171

172172
// Easy Print
173+
// C++14 (MSVC 2015+ or MinGW 5.1+)
174+
#if (defined(_MSC_VER) && _MSC_VER >= 1900) || (defined(__MINGW32__) && __cplusplus >= 201402L)
173175
{
174176
auto pids = vu::name_to_pid(ts("explorer.exe"));
175177
auto string = std::ep::stringify_container(pids);
176178
std::tcout << string << std::endl;
177179
}
180+
#endif // C++14 (MSVC 2015+ or MinGW 5.1+)
178181

179182
return vu::VU_OK;
180183
}

include/template/easyprint.tpl

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
#pragma once
1212

13+
// C++14 (MSVC 2015+ or MinGW 5.1+)
14+
#if (defined(_MSC_VER) && _MSC_VER >= 1900) || (defined(__MINGW32__) && __cplusplus >= 201402L)
15+
1316
#define EASY_PRINT_WINDOWS
1417
#include "3rdparty/EP/include/easyprint.hpp"
1518

@@ -35,4 +38,6 @@ std::wstring stringify_container_W(const T& container)
3538
#define stringify_container stringify_container_W
3639
#else // _UNICODE
3740
#define stringify_container stringify_container_A
38-
#endif // _UNICODE
41+
#endif // _UNICODE
42+
43+
#endif // C++14 (MSVC 2015+ or MinGW 5.1+)

include/template/nameop.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ static auto in = base::make_named_operator(op_impl::in_t());
3838

3939
#define VU_HAS_STD_OP
4040

41-
#endif
41+
#endif // C++14 (MSVC 2015+ or MinGW 5.1+)

0 commit comments

Comments
 (0)