diff options
| author | Congcong Kuo <congcong.kuo@gmail.com> | 2025-07-21 11:02:40 +0800 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-10-19 21:29:39 +0200 |
| commit | 3af52f845fe2ceb448416ac7b9f48925673c594e (patch) | |
| tree | c8623599d15363a8e760adf1ad9dd01477ceabd7 /nix/boost/format/internals_fwd.hpp | |
| parent | cbda925613b2962db8c6dbb2ea3dda7e3b433611 (diff) | |
daemon: Bump to C++20 and use ‘std::format’ instead of ‘boost::format’.
* nix/boost: This directory and all files inside it are removed.
* nix/libstore/build.cc (Goal::trace): Use ‘std::string’ instead of ‘const format &’.
(DerivationGoal::startBuilder, ...): Use ‘std::format’ or ‘std::vformat’ instead of ‘boost::format’.
* nix/libstore/builtins.cc (builtinDownload): Same.
* nix/libstore/derivations.cc (DerivationOutput::parseHashInfo, ...): Same.
* nix/libstore/gc.cc (LocalStore::openGCLock, ...): Same.
* nix/libstore/globals.cc (Settings::_get): Same.
* nix/libstore/local-store.cc: (checkStoreNotSymlink, ...): Same.
* nix/libstore/misc.cc (dfsVisit, showBytes): Same
* nix/libstore/optimise-store.cc (makeWritable, ...): Same.
* nix/libstore/pathlocks.cc (openLockFile, ...): Same.
* nix/libstore/references.cc (search, scanForReferences): Same.
* nix/libstore/sqlite.hh (throwSQLiteError): Use ‘std::string’ instead of ‘const format &’.
* nix/libstore/sqlite.cc (throwSQLiteError): Use ‘std::string’ instead of ‘const format &’.
* nix/libstore/store-api.cc (assertStorePath, ...): Use ‘std::format’ instead of ‘boost::format’.
* nix/libutil/affinity.cc (setAffinityTo): Same.
* nix/libutil/archive.cc (dumpContents, ...): Same.
* nix/libutil/hash.cc (parseHash, parseHash32, parseHash16or32, hashFile): Same.
* nix/libutil/hash.hh (parseHash, parseHash32, parseHash16or32, isHash): Same.
* nix/libutil/serialise.cc : Add ‘<cassert>’ header file.
* nix/libutil/spawn.cc (addPhaseAfter, ...): Use ‘std::format’ instead of ‘boost::format’.
* nix/libutil/types.hh (FormatOrString): Removed.
(BaseError, BaseError::addPrefix, SysError, MakeError):
Use ‘std::string or std::string_view’ instead of ‘FormatOrString’.
* nix/libutil/util.hh (Nest::open, printMsg_, warnOnce, expect): Same.
* nix/libutil/util.cc (BaseError::BaseError, ...): Same.
(writeToStderr, _interrupted): Use std::uncaught_exceptions() instead of std::uncaught_exception()
* nix/nix-daemon/nix-daemon.cc (performOp, ...): Same.
* nix/nix-daemon/guix-daemon.cc (string_to_bool, ...): Same.
* nix/local.mk: Remove ‘libformat.a’ from ‘noinst_LIBRARIES’,
remove ‘libformat_a_SOURCES’ and ‘libformat_headers’,
remove ‘libformat_a_CPPFLAGS’ from ‘libutil_a_CPPFLAGS’ and ‘guix_daemon_LDADD’,
update ‘AM_CXXFLAGS’ to ‘-std=c++20’.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'nix/boost/format/internals_fwd.hpp')
| -rw-r--r-- | nix/boost/format/internals_fwd.hpp | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/nix/boost/format/internals_fwd.hpp b/nix/boost/format/internals_fwd.hpp deleted file mode 100644 index a8ebf7c3abc..00000000000 --- a/nix/boost/format/internals_fwd.hpp +++ /dev/null | |||
| @@ -1,65 +0,0 @@ | |||
| 1 | // -*- C++ -*- | ||
| 2 | // Boost general library 'format' --------------------------- | ||
| 3 | // See http://www.boost.org for updates, documentation, and revision history. | ||
| 4 | |||
| 5 | // (C) Samuel Krempp 2001 | ||
| 6 | // krempp@crans.ens-cachan.fr | ||
| 7 | // Permission to copy, use, modify, sell and | ||
| 8 | // distribute this software is granted provided this copyright notice appears | ||
| 9 | // in all copies. This software is provided "as is" without express or implied | ||
| 10 | // warranty, and with no claim as to its suitability for any purpose. | ||
| 11 | |||
| 12 | // ideas taken from Rüdiger Loos's format class | ||
| 13 | // and Karl Nelson's ofstream (also took its parsing code as basis for printf parsing) | ||
| 14 | |||
| 15 | // ------------------------------------------------------------------------------ | ||
| 16 | // internals_fwd.hpp : forward declarations, for internal headers | ||
| 17 | // ------------------------------------------------------------------------------ | ||
| 18 | |||
| 19 | #ifndef BOOST_FORMAT_INTERNAL_FWD_HPP | ||
| 20 | #define BOOST_FORMAT_INTERNAL_FWD_HPP | ||
| 21 | |||
| 22 | #include "boost/format/format_fwd.hpp" | ||
| 23 | |||
| 24 | |||
| 25 | namespace boost { | ||
| 26 | namespace io { | ||
| 27 | |||
| 28 | namespace detail { | ||
| 29 | struct stream_format_state; | ||
| 30 | struct format_item; | ||
| 31 | } | ||
| 32 | |||
| 33 | |||
| 34 | namespace detail { | ||
| 35 | |||
| 36 | // these functions were intended as methods, | ||
| 37 | // but MSVC have problems with template member functions : | ||
| 38 | |||
| 39 | // defined in format_implementation.hpp : | ||
| 40 | template<class T> | ||
| 41 | basic_format& modify_item_body( basic_format& self, | ||
| 42 | int itemN, const T& manipulator); | ||
| 43 | |||
| 44 | template<class T> | ||
| 45 | basic_format& bind_arg_body( basic_format& self, | ||
| 46 | int argN, const T& val); | ||
| 47 | |||
| 48 | template<class T> | ||
| 49 | void apply_manip_body( stream_format_state& self, | ||
| 50 | T manipulator); | ||
| 51 | |||
| 52 | // argument feeding (defined in feed_args.hpp ) : | ||
| 53 | template<class T> | ||
| 54 | void distribute(basic_format& self, T x); | ||
| 55 | |||
| 56 | template<class T> | ||
| 57 | basic_format& feed(basic_format& self, T x); | ||
| 58 | |||
| 59 | } // namespace detail | ||
| 60 | |||
| 61 | } // namespace io | ||
| 62 | } // namespace boost | ||
| 63 | |||
| 64 | |||
| 65 | #endif // BOOST_FORMAT_INTERNAL_FWD_HPP | ||
