Skip to content

Commit

Permalink
[test] fix for config test under clang
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztof-jusiak committed Aug 10, 2016
1 parent 0f3bc60 commit 9e0a294
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/ut/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//
#include "boost/di/config.hpp"
#include <type_traits>
#include "common/fakes/fake_injector.hpp"

struct policy1 {
template <class T>
Expand All @@ -23,6 +24,6 @@ test make_policies_types = [] {
};

test default_config = [] {
expect(std::is_same<providers::stack_over_heap, decltype(config::provider(0))>{});
expect(std::is_same<core::pool<aux::type_list<>>, decltype(config::policies(0))>{});
expect(std::is_same<providers::stack_over_heap, decltype(config::provider((fake_injector<>*)0))>{});
expect(std::is_same<core::pool<aux::type_list<>>, decltype(config::policies((fake_injector<>*)0))>{});
};

0 comments on commit 9e0a294

Please sign in to comment.