• R/O
  • HTTP
  • SSH
  • HTTPS

system-metrics: Commit


Commit MetaInfo

Revisão2458900510fd6865d567e2fa35f1537e68b4db7e (tree)
Hora2020-02-18 07:32:06
AutorTomasz Konojacki <me@xenu...>
CommiterTomasz Konojacki

Mensagem de Log

sdsadsad

Mudança Sumário

Diff

--- a/Build.PL
+++ b/Build.PL
@@ -56,6 +56,9 @@ if ($Config{uvsize} < 8) {
5656
5757 my $guess = ExtUtils::CppGuess->new;
5858
59+# for 3rdparty/nonstd/span.hpp
60+#$guess->add_extra_compiler_flags('-Dspan_FEATURE_MAKE_SPAN=1');
61+
5962 if ($guess->is_gcc || $guess->is_clang) {
6063 $guess->add_extra_compiler_flags('-std=c++11');
6164 $guess->add_extra_compiler_flags('-Wall -Wextra -Wformat=2');
--- a/cxx/bsd.hxx
+++ b/cxx/bsd.hxx
@@ -25,7 +25,7 @@
2525 #include <vector>
2626 #include <sys/param.h>
2727 #include <sys/sysctl.h>
28-#include "3rdparty/tcb/span.hpp"
28+#include "3rdparty/nonstd/span.hpp"
2929
3030 #include "system_metrics.hxx"
3131 #include "unix.hxx"
@@ -50,7 +50,7 @@
5050 //
5151 // On failure, it throws an errno_exception.
5252 //
53-// XXX: sometime in the future tcb::span should be replaced with std::span
53+// XXX: sometime in the future nonstd::span should be replaced with std::span
5454 class sm_sysctl {
5555 public:
5656 int mib[CTL_MAXNAME];
@@ -67,13 +67,13 @@ public:
6767 template<typename T> size_t
6868 call(std::vector<T> &oldbuf) const
6969 {
70- return this->call<T>(tcb::make_span(oldbuf));
70+ return this->call<T>(nonstd::make_span(oldbuf));
7171 }
7272
7373 template<typename T, int size>size_t
7474 call(T(&oldbuf)[size]) const
7575 {
76- return this->call<T>(tcb::make_span(oldbuf));
76+ return this->call<T>(nonstd::make_span(oldbuf));
7777 }
7878
7979 template<typename T> size_t
Show on old repository browser