-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSVC C++20 Support #126
MSVC C++20 Support #126
Changes from all commits
7ab7a4f
900f620
5dd244f
b670fc3
58c457b
d68084d
2e78a81
622afeb
2e8b826
0f69ed8
c93d480
32d3c7b
8888b16
57e3f22
01ff792
7a61a75
1cb0b49
7d3c408
a46be16
ef7ca40
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ gh-pages/ | |
|
||
documentation/doxyfile.bak | ||
build_asl/ | ||
.vs/ | ||
.vscode/ |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,23 +3,51 @@ | |
"configurePresets": [ | ||
{ | ||
"name": "debug", | ||
"displayName": "Custom configure preset", | ||
"displayName": "debug-windows", | ||
"description": "Sets Ninja generator, build and install directory", | ||
"generator": "Ninja", | ||
"binaryDir": "${sourceDir}/build/${presetName}", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug", | ||
"CMAKE_CXX_STANDARD": "20", | ||
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}", | ||
"VCPKG_TARGET_TRIPLET": "x64-windows" | ||
}, | ||
"architecture": { | ||
"value": "x64", | ||
"strategy": "external" | ||
}, | ||
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So this toolchain requires vcpkg? Is that dependency documented in the README? If not you better do that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The system is currently using vcpkg to pull in boost. It's undocumented, and I'd like to get rid of it in favor of fetch content, but not in this PR. |
||
"vendor": { | ||
"microsoft.com/VisualStudioSettings/CMake/1.0": { | ||
"hostOS": [ | ||
"Windows" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "debug-windows-cpp17", | ||
"displayName": "debug-windows-cpp17", | ||
"description": "Sets Ninja generator, build and install directory", | ||
"generator": "Ninja", | ||
"binaryDir": "${sourceDir}/build/${presetName}", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug", | ||
"CMAKE_CXX_STANDARD": "17", | ||
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}", | ||
"VCPKG_TARGET_TRIPLET": "x64-windows" | ||
}, | ||
"architecture": { | ||
"value": "x64", | ||
"strategy": "external" | ||
}, | ||
"toolchainFile": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake", | ||
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", | ||
"vendor": { | ||
"microsoft.com/VisualStudioSettings/CMake/1.0": { | ||
"hostOS": [ "Windows" ] | ||
"hostOS": [ | ||
"Windows" | ||
] | ||
} | ||
} | ||
}, | ||
|
@@ -36,7 +64,9 @@ | |
}, | ||
"vendor": { | ||
"microsoft.com/VisualStudioSettings/CMake/1.0": { | ||
"hostOS": [ "macOS" ] | ||
"hostOS": [ | ||
"macOS" | ||
] | ||
} | ||
} | ||
}, | ||
|
@@ -53,14 +83,16 @@ | |
}, | ||
"vendor": { | ||
"microsoft.com/VisualStudioSettings/CMake/1.0": { | ||
"hostOS": [ "macOS" ] | ||
"hostOS": [ | ||
"macOS" | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"buildPresets": [ | ||
{ | ||
"name": "debug", | ||
"name": "debug-windows", | ||
"description": "", | ||
"displayName": "", | ||
"configurePreset": "debug" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
Copyright 2024 Adobe | ||
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) | ||
*/ | ||
/**************************************************************************************************/ | ||
|
||
#ifndef ADOBE_ALGORITHM_APPEND_HPP | ||
#define ADOBE_ALGORITHM_APPEND_HPP | ||
|
||
#include <iterator> | ||
|
||
/**************************************************************************************************/ | ||
|
||
namespace adobe { | ||
|
||
/**************************************************************************************************/ | ||
|
||
/// Insert the elements of _input_range_ `r` at the end of the _sequence container_ `c`, | ||
/// returning the position corresponding to the incoming `end` of `c`. | ||
template <class T, class R> | ||
inline auto append(T& c, const R& r) { | ||
return c.insert(std::end(c), std::begin(r), std::end(r)); | ||
} | ||
|
||
/**************************************************************************************************/ | ||
|
||
} // namespace adobe | ||
|
||
/**************************************************************************************************/ | ||
|
||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to assume that dropping the Xcode setting is intentional and correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. It isn't needed.