mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Merge pull request #9564 from NixOS/fix-clang-build
Avoid `std::strstream`, fix the clang build
This commit is contained in:
commit
762af72728
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <strstream>
|
#include <sstream>
|
||||||
|
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#include <nlohmann/json.hpp>
|
#include <nlohmann/json.hpp>
|
||||||
|
@ -2691,7 +2691,7 @@ void EvalState::printStatistics()
|
||||||
|
|
||||||
std::string ExternalValueBase::coerceToString(const Pos & pos, NixStringContext & context, bool copyMore, bool copyToStore) const
|
std::string ExternalValueBase::coerceToString(const Pos & pos, NixStringContext & context, bool copyMore, bool copyToStore) const
|
||||||
{
|
{
|
||||||
std::strstream printed;
|
std::stringstream printed;
|
||||||
print(printed);
|
print(printed);
|
||||||
throw TypeError({
|
throw TypeError({
|
||||||
.msg = hintfmt("cannot coerce %1% to a string: %2%", showType(), printed.str())
|
.msg = hintfmt("cannot coerce %1% to a string: %2%", showType(), printed.str())
|
||||||
|
|
Loading…
Reference in a new issue