13 / 13 / 7
Регистрация: 21.04.2013
Сообщений: 245
|
||||||
1 | ||||||
Field `.` has incomplete type boost::weak_ptr15.12.2014, 10:29. Показов 2444. Ответов 2
Метки нет (Все метки)
Здравствуйте!
Интересует вопрос: если член класса имеет тип weak_ptr, то требуется определение класса, а "forward-ного" объявления недостаточно?
Кликните здесь для просмотра всего текста
In file included from TSubject.hxx:4:0,
from LoadData.hpp:12, from LoadData.cpp:2: Subject.hxx:14:26: error: field ‘group’ has incomplete type ‘boost::weak_ptr<TimeTableCore::Group>’ boost::weak_ptr<Group> group; ^ Subject.hxx:15:29: error: field ‘lecturer’ has incomplete type ‘boost::weak_ptr<TimeTableCore::Lecturer>’ boost::weak_ptr<Lecturer> lecturer; ^ Subject.hxx:53:29: error: field ‘secondLecturer’ has incomplete type ‘boost::weak_ptr<TimeTableCore::Lecturer>’ boost::weak_ptr<Lecturer> secondLecturer; ^ Вывод clang: Кликните здесь для просмотра всего текста
In file included from LoadData.cpp:2:
In file included from ./LoadData.hpp:12: In file included from ./TSubject.hxx:4: ./Subject.hxx:14:26: error: implicit instantiation of undefined template 'boost::weak_ptr<TimeTableCore::Group>' boost::weak_ptr<Group> group; ^ /usr/include/boost/smart_ptr/shared_ptr.hpp:723:36: note: template is declared here template<class Y> friend class weak_ptr; ^ In file included from LoadData.cpp:2: In file included from ./LoadData.hpp:12: In file included from ./TSubject.hxx:4: ./Subject.hxx:15:29: error: implicit instantiation of undefined template 'boost::weak_ptr<TimeTableCore::Lecturer>' boost::weak_ptr<Lecturer> lecturer; ^ /usr/include/boost/smart_ptr/shared_ptr.hpp:723:36: note: template is declared here template<class Y> friend class weak_ptr; ^ In file included from LoadData.cpp:2: In file included from ./LoadData.hpp:12: In file included from ./TSubject.hxx:4: ./Subject.hxx:53:29: error: implicit instantiation of undefined template 'boost::weak_ptr<TimeTableCore::Lecturer>' boost::weak_ptr<Lecturer> secondLecturer; ^ /usr/include/boost/smart_ptr/shared_ptr.hpp:723:36: note: template is declared here template<class Y> friend class weak_ptr; ^
0
|
15.12.2014, 10:29 | |
Ответы с готовыми решениями:
2
Реализовать класс Node ([Error] field 'next' has incomplete type 'Node') Incomplete type used in nested type specifier - Итерация по списку аргументов Field 'settings' has incomplete type 'ColorSettings' Error: array type has incomplete element type |
13 / 13 / 7
Регистрация: 21.04.2013
Сообщений: 245
|
|
15.12.2014, 12:33 [ТС] | 3 |
DiffEreD, ))
0
|
15.12.2014, 12:33 | |
15.12.2014, 12:33 | |
Помогаю со студенческими работами здесь
3
lookup information for field is incomplete Lookup поле - information for field is incomplete Incomplete type Invalid use of incomplete type Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |