Skip to content

Instantly share code, notes, and snippets.

@mirekfranc
Last active June 6, 2017 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mirekfranc/8bdb5cac05723636f1acdff024551e45 to your computer and use it in GitHub Desktop.
Save mirekfranc/8bdb5cac05723636f1acdff024551e45 to your computer and use it in GitHub Desktop.
if (distance<home, work>::value < km<2>::value)
go_by_foot<work>();
else if (distance<my_car, home>::value
+ distance<free_parking_lot, work>::value
< km<1>::value)
go_by_car<work>();
else
go_by_public_transport<work>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment