Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active June 25, 2017 17:14
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 deque-blog/5374d4ae3706505a86d7e2a6fe2ea524 to your computer and use it in GitHub Desktop.
Save deque-blog/5374d4ae3706505a86d7e2a6fe2ea524 to your computer and use it in GitHub Desktop.
std::unique_ptr<IFindTheBestPlaces> find_best_places_service()
{
ISearchTrains& iSearchTrains = ...;
IReserveTrains& iReserveTrains = ...;
ILog& iLog = ...;
return std::make_unique<FindTheBestPlaces>(iReserveTrains, iSearchTrains, iLog);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment