-
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 6 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,4 @@ gh-pages/ | |
|
||
documentation/doxyfile.bak | ||
build_asl/ | ||
.vs/ |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
Copyright 2013 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_EXCEPTION_HPP | ||
#define ADOBE_EXCEPTION_HPP | ||
|
||
#include <string> | ||
|
||
/**************************************************************************************************/ | ||
|
||
namespace adobe { | ||
|
||
/**************************************************************************************************/ | ||
|
||
/// invoke `std::terminate` with the given message. | ||
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. ? You can't invoke 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. I updated the comment to be more clear. |
||
[[noreturn]] void terminate(const char*); | ||
[[noreturn]] void terminate(const std::string&); | ||
|
||
/**************************************************************************************************/ | ||
|
||
} // namespace adobe | ||
|
||
/**************************************************************************************************/ | ||
|
||
#endif | ||
|
||
/**************************************************************************************************/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -227,7 +227,7 @@ class byte_toroid_t : boost::noncopyable { | |
|
||
void purify(toroid_node_t* p) { | ||
toroid_header_t* c(column_of(p)); | ||
int x(p->color_m); | ||
auto x(p->color_m); | ||
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. Surely not needed for C++20 support? Why is it even an improvement? Aside: we really don't use copy-initialization anymore? This syntax makes it look like a function declaration. 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. This silences a warning because |
||
|
||
c->color_m = x; | ||
|
||
|
@@ -248,7 +248,7 @@ class byte_toroid_t : boost::noncopyable { | |
|
||
void unpurify(toroid_node_t* p) { | ||
toroid_header_t* c(column_of(p)); | ||
int x(p->color_m); | ||
auto x(p->color_m); | ||
|
||
for (toroid_node_t* rr = up_of(c); rr != c; rr = up_of(rr)) { | ||
if (rr->color_m < 0) { | ||
|
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.