Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
larroy committed Jul 4, 2019
1 parent 8a5a4ec commit fea1244
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/common/directed_graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
#include <functional>
#include <iterator>

#define SELF_t \
static auto helper() -> typename std::remove_reference<decltype(*this)>::type; \
typedef decltype(helper())

namespace common {
namespace graph {
Expand All @@ -47,7 +44,7 @@ class DirectedGraph {
const EdgeAttrs_ default_edge = EdgeAttrs_();

public:
SELF_t DirectedGraph_t;
typedef DirectedGraph<Node_, EdgeAttrs_, NodeKey_t_, EdgeKey_t_> DirectedGraph_t;
typedef Node_ Node;
typedef NodeKey_t_ NodeKey_t;
typedef EdgeKey_t_ EdgeKey_t;
Expand Down
2 changes: 1 addition & 1 deletion src/nnvm/graph_dump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "./graph_dump.h"
#include <vector>
#include <string>
#include "common/directed_graph.h"
#include "../common/directed_graph.h"
#include "dmlc/json.h"
#include "nnvm/graph.h"

Expand Down

0 comments on commit fea1244

Please sign in to comment.