未验证 提交 88834bd7 编写于 作者: A Amos Bird

Resolve DUMP overload resolution ambiguity.

上级 1b8cb59e
......@@ -6,11 +6,18 @@
namespace DB
{
// Used to disable implicit casting for certain overloaded types such as Field, which leads to
// overload resolution ambiguity.
template <typename T> struct Dumpable;
template <typename T>
std::ostream & operator<<(std::ostream & stream, const typename Dumpable<T>::Type & what);
class IBlockInputStream;
std::ostream & operator<<(std::ostream & stream, const IBlockInputStream & what);
class Field;
std::ostream & operator<<(std::ostream & stream, const Field & what);
template <> struct Dumpable<Field> { using Type = Field; };
struct NameAndTypePair;
std::ostream & operator<<(std::ostream & stream, const NameAndTypePair & what);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册