-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Details: - Add Path alias - Test char, wchar, utf8,16,32 casts ### Tickets: - [*158902*](https://jira.devtools.intel.com/browse/CVS-158902) --------- Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
- Loading branch information
Showing
15 changed files
with
412 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Copyright (C) 2018-2024 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
#pragma once | ||
/** | ||
* @brief Define a separate value for every version of C++ standard upto currently supported by build setup. | ||
*/ | ||
#if !(defined(_MSC_VER) && __cplusplus == 199711L) | ||
# if __cplusplus >= 201103L | ||
# define OPENVINO_CPP_VER_AT_LEAST_11 | ||
# if __cplusplus >= 201402L | ||
# define OPENVINO_CPP_VER_AT_LEAST_14 | ||
# if __cplusplus >= 201703L | ||
# define OPENVINO_CPP_VER_AT_LEAST_17 | ||
# if __cplusplus >= 202002L | ||
# define OPENVINO_CPP_VER_AT_LEAST_20 | ||
# endif | ||
# endif | ||
# endif | ||
# endif | ||
#elif defined(_MSC_VER) && __cplusplus == 199711L | ||
# if _MSVC_LANG >= 201103L | ||
# define OPENVINO_CPP_VER_AT_LEAST_11 | ||
# if _MSVC_LANG >= 201402L | ||
# define OPENVINO_CPP_VER_AT_LEAST_14 | ||
# if _MSVC_LANG >= 201703L | ||
# define OPENVINO_CPP_VER_AT_LEAST_17 | ||
# if _MSVC_LANG >= 202002L | ||
# define OPENVINO_CPP_VER_AT_LEAST_20 | ||
# endif | ||
# endif | ||
# endif | ||
# endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright (C) 2018-2024 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
#pragma once | ||
|
||
#include <cstdio> | ||
|
||
#include "openvino/util/filesystem.hpp" | ||
namespace ov { | ||
namespace util { | ||
|
||
#if defined(OPENVINO_HAS_FILESYSTEM) | ||
using Path = std::filesystem::path; | ||
#elif defined(OPENVINO_HAS_EXP_FILESYSTEM) | ||
// Known issues: | ||
// * error C2280: 'std::u32string std::experimental::filesystem::v1::path::u32string(void) const': attempting to | ||
// * filesystem error: Cannot convert character sequence: Invalid in or incomplete multibyte or wide character | ||
|
||
/// | ||
/// @typedef Path | ||
/// @brief Alias for std::experimental::filesystem::path. | ||
/// | ||
/// This alias is used to simplify the usage of filesystem paths. | ||
/// | ||
/// @note The experimental version of std::filesystem::path may not support all features correctly. | ||
/// It is recommended to use this alias with caution and consider upgrading to C++17 or higher | ||
/// for full support of std::filesystem::path. | ||
/// | ||
using Path = std::experimental::filesystem::path; | ||
#endif | ||
|
||
} // namespace util | ||
} // namespace ov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.