Skip to content

Commit 076509b

Browse files
Update code for building
1 parent e9809ed commit 076509b

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

include/bitcoin/protocol/config/authority.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ class BCP_API authority
4646
/// The port is optional and will be set to zero if not provided.
4747
/// The host can be in one of two forms:
4848
/// [2001:db8::2]:port or 1.2.240.1:port.
49-
authority(const std::string& value) NOEXCEPT(false);
49+
authority(const std::string& value) THROWS;
5050

5151
/// The host can be in one of three forms:
5252
/// [2001:db8::2] or 2001:db8::2 or 1.2.240.1
53-
authority(const std::string& host, uint16_t port) NOEXCEPT(false);
53+
authority(const std::string& host, uint16_t port) THROWS;
5454

5555
/// True if the port is non-zero.
5656
operator bool() const NOEXCEPT;
@@ -73,7 +73,7 @@ class BCP_API authority
7373
std::string to_string() const NOEXCEPT;
7474

7575
friend std::istream& operator>>(std::istream& input,
76-
authority& argument) NOEXCEPT(false);
76+
authority& argument) THROWS;
7777
friend std::ostream& operator<<(std::ostream& output,
7878
const authority& argument) NOEXCEPT;
7979

include/bitcoin/protocol/config/endpoint.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class BCP_API endpoint
4545
/// The scheme and port may be undefined, in which case the port is
4646
/// reported as zero and the scheme is reported as an empty string.
4747
/// The value is of the form: [scheme://]host[:port]
48-
endpoint(const std::string& uri) NOEXCEPT(false);
48+
endpoint(const std::string& uri) THROWS;
4949
endpoint(const authority& authority) NOEXCEPT;
5050

5151
/// host may be host name or ip address.
@@ -76,7 +76,7 @@ class BCP_API endpoint
7676
endpoint to_local() const NOEXCEPT;
7777

7878
friend std::istream& operator>>(std::istream& input,
79-
endpoint& argument) NOEXCEPT(false);
79+
endpoint& argument) THROWS;
8080
friend std::ostream& operator<<(std::ostream& output,
8181
const endpoint& argument) NOEXCEPT;
8282

include/bitcoin/protocol/config/sodium.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class BCP_API sodium
4040
typedef std::vector<sodium> list;
4141

4242
sodium() NOEXCEPT;
43-
sodium(const std::string& base85) NOEXCEPT(false);
43+
sodium(const std::string& base85) THROWS;
4444
sodium(const system::hash_digest& value) NOEXCEPT;
4545

4646
/// True if the key is initialized.
@@ -53,9 +53,9 @@ class BCP_API sodium
5353
std::string to_string() const NOEXCEPT;
5454

5555
friend std::istream& operator>>(std::istream& input,
56-
sodium& argument) NOEXCEPT(false);
56+
sodium& argument) THROWS;
5757
friend std::ostream& operator<<(std::ostream& output,
58-
const sodium& argument) NOEXCEPT(false);
58+
const sodium& argument) THROWS;
5959

6060
private:
6161
system::hash_digest value_;

src/config/authority.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static std::string to_host_name(const std::string& host) NOEXCEPT
4949

5050
// host: [2001:db8::2] or 2001:db8::2 or 1.2.240.1
5151
static std::string to_text(const std::string& host,
52-
uint16_t port) NOEXCEPT(false)
52+
uint16_t port) THROWS
5353
{
5454
std::stringstream authority;
5555
authority << to_host_name(host);
@@ -123,14 +123,14 @@ BC_POP_WARNING()
123123
}
124124

125125
// authority: [2001:db8::2]:port or 1.2.240.1:port
126-
authority::authority(const std::string& value) NOEXCEPT(false)
126+
authority::authority(const std::string& value) THROWS
127127
: authority()
128128
{
129129
std::stringstream(value) >> *this;
130130
}
131131

132132
// host: [2001:db8::2] or 2001:db8::2 or 1.2.240.1
133-
authority::authority(const std::string& host, uint16_t port) NOEXCEPT(false)
133+
authority::authority(const std::string& host, uint16_t port) THROWS
134134
: authority()
135135
{
136136
std::stringstream(to_text(host, port)) >> *this;
@@ -168,7 +168,7 @@ std::string authority::to_string() const NOEXCEPT
168168
}
169169

170170
std::istream& operator>>(std::istream& input,
171-
authority& argument) NOEXCEPT(false)
171+
authority& argument) THROWS
172172
{
173173
std::string value;
174174
input >> value;

src/config/endpoint.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ BC_POP_WARNING()
3737
{
3838
}
3939

40-
endpoint::endpoint(const std::string& uri) NOEXCEPT(false)
40+
endpoint::endpoint(const std::string& uri) THROWS
4141
: scheme_(), host_(), port_(0)
4242
{
4343
std::stringstream(uri) >> *this;
@@ -98,7 +98,7 @@ endpoint::operator bool() const NOEXCEPT
9898
}
9999

100100
std::istream& operator>>(std::istream& input,
101-
endpoint& argument) NOEXCEPT(false)
101+
endpoint& argument) THROWS
102102
{
103103
std::string value;
104104
input >> value;

src/config/sodium.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ sodium::sodium() NOEXCEPT
3535
{
3636
}
3737

38-
sodium::sodium(const std::string& base85) NOEXCEPT(false)
38+
sodium::sodium(const std::string& base85) THROWS
3939
: sodium()
4040
{
4141
std::stringstream(base85) >> *this;
@@ -66,7 +66,7 @@ std::string sodium::to_string() const NOEXCEPT
6666
BC_POP_WARNING()
6767
}
6868

69-
std::istream& operator>>(std::istream& input, sodium& argument) NOEXCEPT(false)
69+
std::istream& operator>>(std::istream& input, sodium& argument) THROWS
7070
{
7171
std::string base85;
7272
input >> base85;
@@ -82,7 +82,7 @@ std::istream& operator>>(std::istream& input, sodium& argument) NOEXCEPT(false)
8282
}
8383

8484
std::ostream& operator<<(std::ostream& output,
85-
const sodium& argument) NOEXCEPT(false)
85+
const sodium& argument) THROWS
8686
{
8787
std::string decoded;
8888

0 commit comments

Comments
 (0)