提交 8e490335 编写于 作者: Y Yi Wang

Fix Google Style

上级 b984ed9d
...@@ -6,12 +6,12 @@ namespace platform { ...@@ -6,12 +6,12 @@ namespace platform {
namespace detail { namespace detail {
class PlacePrinter : public boost::static_visitor<> { class PlacePrinter : public boost::static_visitor<> {
public: public:
PlacePrinter(std::ostream &os) : os_(os) {} PlacePrinter(std::ostream &os) : os_(os) {}
void operator()(const CpuPlace &) { os_ << "CpuPlace"; } void operator()(const CpuPlace &) { os_ << "CpuPlace"; }
void operator()(const GpuPlace &p) { os_ << "GpuPlace(" << p.device << ")"; } void operator()(const GpuPlace &p) { os_ << "GpuPlace(" << p.device << ")"; }
private: private:
std::ostream &os_; std::ostream &os_;
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册