Commit Graph

30 Commits

Author SHA1 Message Date
Michael Livshin
f8d4bafa5a to_string.hh: include <map>
The code uses `std::map`, so it should include the definition
explicitly.

Signed-off-by: Michael Livshin <michael.livshin@scylladb.com>
2022-02-17 08:53:48 +02:00
Avi Kivity
fcb8d040e8 treewide: use Software Package Data Exchange (SPDX) license identifiers
Instead of lengthy blurbs, switch to single-line, machine-readable
standardized (https://spdx.dev) license identifiers. The Linux kernel
switched long ago, so there is strong precedent.

Three cases are handled: AGPL-only, Apache-only, and dual licensed.
For the latter case, I chose (AGPL-3.0-or-later and Apache-2.0),
reasoning that our changes are extensive enough to apply our license.

The changes we applied mechanically with a script, except to
licenses/README.md.

Closes #9937
2022-01-18 12:15:18 +01:00
Pavel Emelyanov
133692477d to_string: Add formatter for strong_ordering
There's not default one (yet), but totat_order_check.hh wants
to print and format these values.

Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
2021-06-08 11:33:04 +03:00
Avi Kivity
a55b434a2b treewide: extent copyright statements to present day 2021-06-06 19:18:49 +03:00
Botond Dénes
e0284bb9ee treewide: add missing headers and/or forward declarations 2020-03-23 09:29:45 +02:00
Gleb Natapov
e61a86bbb2 to_string: Add operator<< overload for std::tuple.
Message-Id: <20190829100902.GN21540@scylladb.com>
2019-08-29 13:35:02 +03:00
Duarte Nunes
fa2b0384d2 Replace std::experimental types with C++17 std version.
Replace stdx::optional and stdx::string_view with the C++ std
counterparts.

Some instances of boost::variant were also replaced with std::variant,
namely those that called seastar::visit.

Scylla now requires GCC 8 to compile.

Signed-off-by: Duarte Nunes <duarte@scylladb.com>
Message-Id: <20190108111141.5369-1-duarte@scylladb.com>
2019-01-08 13:16:36 +02:00
Avi Kivity
775b7e41f4 Update seastar submodule
* seastar d59fcef...b924495 (2):
  > build: Fix protobuf generation rules
  > Merge "Restructure files" from Jesse

Includes fixup patch from Jesse:

"
Update Seastar `#include`s to reflect restructure

All Seastar header files are now prefixed with "seastar" and the
configure script reflects the new locations of files.

Signed-off-by: Jesse Haber-Kucharsky <jhaberku@scylladb.com>
Message-Id: <5d22d964a7735696fb6bb7606ed88f35dde31413.1542731639.git.jhaberku@scylladb.com>
"
2018-11-21 00:01:44 +02:00
Vladimir Krivopalov
7b1d4915a1 to_string: Add operator<< overload for std::optional.
Signed-off-by: Vladimir Krivopalov <vladimir@scylladb.com>
2018-08-17 18:20:05 -07:00
Asias He
77018b7304 to_string: Add std::list and utils::chunked_vector support
It will be used by the gossip code.
2018-07-17 16:14:31 +08:00
Calle Wilund
2095cb82a5 utils::to_string: Add printers for pairs+maps 2017-12-05 14:28:34 +00:00
Avi Kivity
ebaeefa02b Merge seatar upstream (seastar namespace)
- introcduced "seastarx.hh" header, which does a "using namespace seastar";
 - 'net' namespace conflicts with seastar::net, renamed to 'netw'.
 - 'transport' namespace conflicts with seastar::transport, renamed to
   cql_transport.
 - "logger" global variables now conflict with logger global type, renamed
   to xlogger.
 - other minor changes
2017-05-21 12:26:15 +03:00
Duarte Nunes
8b7d7c4e6d to_string: Add missing include
Signed-off-by: Duarte Nunes <duarte@scylladb.com>
2017-05-04 15:59:49 +02:00
Avi Kivity
a83a24268d to_string: move standard container overloads of to_string to std:: namespace
Argument-dependent lookup will not find to_string() overloads in the global
namespace if the argument and the caller are in other namespaces.

Move these to_string() overloads to std:: so ADL will find them.

Found by clang.
2017-04-17 23:03:15 +03:00
Paweł Dziepak
910bff297a to_string: add operator<< overload for std::array<> 2017-03-01 16:33:36 +00:00
Pekka Enberg
38a54df863 Fix pre-ScyllaDB copyright statements
People keep tripping over the old copyrights and copy-pasting them to
new files. Search and replace "Cloudius Systems" with "ScyllaDB".

Message-Id: <1460013664-25966-1-git-send-email-penberg@scylladb.com>
2016-04-08 08:12:47 +03:00
Tomasz Grabiec
307c7676da to_string: Make std::experimental::optional printable
Message-Id: <1456855674-1984-2-git-send-email-tgrabiec@scylladb.com>
2016-03-02 10:49:14 +02:00
Asias He
c973d2ea65 to_string: Support std::set and std::unordered_set for to_string 2015-11-16 13:11:43 +02:00
Calle Wilund
a8742cd199 to_string: Add << operator for std::set 2015-09-30 09:09:43 +02:00
Avi Kivity
d5cf0fb2b1 Add license notices 2015-09-20 10:43:39 +03:00
Asias He
e572101433 to_string: Support print std::unordered_set
With this, we can do

std::unordered_set<dht::tokens> tokens
logger.debug("tokens = {}", tokens)
2015-08-04 20:39:32 +08:00
Avi Kivity
bd3aa31c18 db: make join() work on any range, not just a vector 2015-04-01 20:12:39 +03:00
Tomasz Grabiec
51af0ad8cd to_string: Implement to_string() for std::initializer_list<> 2015-03-30 09:07:01 +02:00
Tomasz Grabiec
14fe96c02e to_string: Implement to_string() using join() 2015-03-30 09:07:01 +02:00
Tomasz Grabiec
c32d0497d2 Switch templates from to_string.hh to rely on operator<< only 2015-03-23 11:04:51 +01:00
Tomasz Grabiec
b3f601c27d to_string: Fix size type mismatch 2015-03-11 14:56:09 +01:00
Tomasz Grabiec
58cf8758f7 to_string: Take vectors by const& 2015-03-11 14:56:09 +01:00
Tomasz Grabiec
49d97a7f93 to_string: Introduce join() 2015-03-11 14:56:09 +01:00
Tomasz Grabiec
8d03ebb8a8 to_string: Add missing includes 2015-02-12 19:40:56 +01:00
Tomasz Grabiec
88e276d272 Introduce to_string() working on vectors of printable 2015-02-04 10:28:59 +01:00