blob: 8c35126e97f1e9a05c97a89154f80597adb969fd [file] [log] [blame]
// PR c++/53137
// { dg-do compile { target c++11 } }
template <typename STORE>
void getParent(STORE& tStore)
{
}
struct Store
{
template <typename CheckParentFunc>
void updateChildCommon(CheckParentFunc c)
{
c();
}
template <typename T>
int& getStore();
template <typename T>
void updateChild(const T& obj)
{
updateChildCommon([this] () { getParent(getStore<T>()); });
}
void update(int obj);
};
void Store::update(int obj)
{
updateChild(obj);
}