File tree Expand file tree Collapse file tree 5 files changed +7
-29
lines changed Expand file tree Collapse file tree 5 files changed +7
-29
lines changed Original file line number Diff line number Diff line change 8
8
#include " ./socket.h"
9
9
#include " ./zmq_inc.h"
10
10
#include " util/error.h"
11
- #include " util/to_string.h"
12
11
13
12
namespace zmq {
14
13
static inline Napi::String Version (const Napi::Env& env) {
@@ -17,8 +16,9 @@ static inline Napi::String Version(const Napi::Env& env) {
17
16
int32_t patch = 0 ;
18
17
zmq_version (&major, &minor, &patch);
19
18
20
- return Napi::String::New (
21
- env, to_string (major) + " ." + to_string (minor) + " ." + to_string (patch));
19
+ return Napi::String::New (env,
20
+ std::to_string (major) + " ." + std::to_string (minor) + " ."
21
+ + std::to_string (patch));
22
22
}
23
23
24
24
static inline Napi::Object Capabilities (const Napi::Env& env) {
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ Observer::Observer(const Napi::CallbackInfo& info)
143
143
144
144
/* Use `this` pointer as unique identifier for monitoring socket. */
145
145
auto address = std::string (" inproc://zmq.monitor." )
146
- + to_string (reinterpret_cast <uintptr_t >(this ));
146
+ + std:: to_string (reinterpret_cast <uintptr_t >(this ));
147
147
148
148
if (zmq_socket_monitor (target->socket , address.c_str (), ZMQ_EVENT_ALL) < 0 ) {
149
149
ErrnoException (Env (), zmq_errno ()).ThrowAsJavaScriptException ();
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ Napi::Value Proxy::Run(const Napi::CallbackInfo& info) {
96
96
97
97
/* Use `this` pointer as unique identifier for control socket. */
98
98
auto address = std::string (" inproc://zmq.proxycontrol." )
99
- + to_string (reinterpret_cast <uintptr_t >(this ));
99
+ + std:: to_string (reinterpret_cast <uintptr_t >(this ));
100
100
101
101
/* Connect publisher so we can start queueing control messages. */
102
102
if (zmq_connect (control_pub, address.c_str ()) < 0 ) {
Original file line number Diff line number Diff line change 4
4
5
5
#include < optional>
6
6
7
- #include " to_string.h"
8
-
9
7
namespace zmq ::Arg {
10
8
11
9
using ValueMethod = bool (Napi::Value::*)() const ;
@@ -89,7 +87,8 @@ class Validator {
89
87
[[nodiscard]] std::optional<Napi::Error> eval (const Napi::CallbackInfo& info) const {
90
88
if constexpr (I == N) {
91
89
if (info.Length () > N) {
92
- auto msg = " Expected " + to_string (N) + " argument" + (N != 1 ? " s" : " " );
90
+ auto msg =
91
+ " Expected " + std::to_string (N) + " argument" + (N != 1 ? " s" : " " );
93
92
return Napi::TypeError::New (info.Env (), msg);
94
93
}
95
94
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments