Created
November 21, 2010 07:36
-
-
Save niha/708541 to your computer and use it in GitHub Desktop.
適切な expression が書けないよの例
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto f(tag_type t) -> val { | |
switch (t) { | |
case A: return a(); | |
case B: return b(); | |
... | |
default: assert(false); /* return ??? */ | |
} | |
assert(false); | |
/* return ??? */ | |
} | |
enum class NoValue {}; | |
auto for_unevaluate_context() -> NoValue { | |
/* return ??? */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment