sapling/eden/fs/model/RootId.cpp
Chad Austin 855e94b4df add missing headers
Summary:
VC++ 2019 is pickier about which standard library includes include
each other. Be explicit.

Reviewed By: zhengchaol

Differential Revision: D31186916

fbshipit-source-id: 95cfa8848d0e2e312e2024923fa166db5f68dde0
2021-09-27 17:01:18 -07:00

24 lines
541 B
C++

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This software may be used and distributed according to the terms of the
* GNU General Public License version 2.
*/
#include "eden/fs/model/RootId.h"
#include <folly/String.h>
#include <ostream>
#include <string>
namespace facebook::eden {
std::ostream& operator<<(std::ostream& os, const RootId& rootId) {
return os << rootId.value();
}
void toAppend(const RootId& rootId, std::string* result) {
folly::cEscape(rootId.value(), *result);
}
} // namespace facebook::eden