mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
855e94b4df
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
24 lines
541 B
C++
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
|