tgba_digraph: Simplify declaration of forwarded methods.

* src/misc/common.hh (SPOT_RETURN): New macro.
* src/tgba/tgbagraph.hh (out, states, transitions): Use it.
This commit is contained in:
Alexandre Duret-Lutz 2014-08-10 15:17:22 +02:00
parent 6ecd71c485
commit df05162780
2 changed files with 18 additions and 10 deletions

View file

@ -95,4 +95,9 @@
#define SPOT_UNIMPLEMENTED() throw std::runtime_error("unimplemented");
// Useful when forwarding methods such as:
// auto func(int param) SPOT_RETURN(implem_.func(param));
#define SPOT_RETURN(code) -> decltype(code) { return code; }
#endif // SPOT_MISC_COMMON_HH