summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx/eolian_cxx_simple_01.cc
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-01-18 22:25:02 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-01-18 22:47:04 -0200
commita1f2db255b22052050baf0c04bb72146b22a6e99 (patch)
tree8499c057a7a0054f75fe3ab4719b2cc3659949d5 /src/examples/eolian_cxx/eolian_cxx_simple_01.cc
parent7f148feea8275d4ae3a366e5aead8170498089a6 (diff)
cxx: Modify how to generate C++ headers and allow cyclic dependencies
Allow cyclic dependencies in generated C++ headers by changing order of includes and creating forward declarations.
Diffstat (limited to 'src/examples/eolian_cxx/eolian_cxx_simple_01.cc')
-rw-r--r--src/examples/eolian_cxx/eolian_cxx_simple_01.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/examples/eolian_cxx/eolian_cxx_simple_01.cc b/src/examples/eolian_cxx/eolian_cxx_simple_01.cc
index eb093d904b..028a429039 100644
--- a/src/examples/eolian_cxx/eolian_cxx_simple_01.cc
+++ b/src/examples/eolian_cxx/eolian_cxx_simple_01.cc
@@ -9,6 +9,8 @@
9 9
10#include "ns_colourable.eo.hh" 10#include "ns_colourable.eo.hh"
11#include "ns_colourablesquare.eo.hh" 11#include "ns_colourablesquare.eo.hh"
12#include "ns_colourable.eo.impl.hh"
13#include "ns_colourablesquare.eo.impl.hh"
12 14
13int 15int
14main() 16main()