Skip to content

Commit

Permalink
Absolute-qualify name refs in macro expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
jckarter committed Nov 30, 2015
1 parent 5176fea commit 6605b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/swift/Basic/Lazy.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ template <typename T> inline T &Lazy<T>::get(void (*initCallback)(void*)) {

#define SWIFT_LAZY_CONSTANT(INITIAL_VALUE) \
({ \
using T = std::remove_reference<decltype(INITIAL_VALUE)>::type; \
static Lazy<T> TheLazy; \
using T = ::std::remove_reference<decltype(INITIAL_VALUE)>::type; \
static ::swift::Lazy<T> TheLazy; \
TheLazy.get([](void *ValueAddr){ ::new(ValueAddr) T{INITIAL_VALUE}; });\
})

Expand Down

0 comments on commit 6605b59

Please sign in to comment.