Bug #2543
closedquery<bool> no longer compiles
0%
Description
When trying to use a query I end up with:
/usr/include/Wt/Dbo/collection_impl.h: In instantiation of 'Wt::Dbo::collection::value_type& Wt::Dbo::collection::iterator::shared_impl::current() [with C = bool; Wt::Dbo::collection::value_type = bool]':
/usr/include/Wt/Dbo/collection_impl.h:90:27: required from 'C& Wt::Dbo::collection::iterator::operator*() [with C = bool]'
/usr/include/Wt/Dbo/collection_impl.h:235:26: required from 'C Wt::Dbo::collection::const_iterator::operator*() [with C = bool]'
/usr/include/Wt/Dbo/Query_impl.h:211:21: required from 'Result Wt::Dbo::Impl::QueryBase::singleResult(const Wt::Dbo::collection&) const [with Result = bool]'
/usr/include/Wt/Dbo/Query_impl.h:474:41: required from 'Result Wt::Dbo::Query<Result, Wt::Dbo::DynamicBinding>::resultValue() const [with Result = bool]'
/usr/include/Wt/Dbo/Query_impl.h:499:22: required from 'Wt::Dbo::Query<Result, Wt::Dbo::DynamicBinding>::operator Result() const [with Result = bool]'
/usr/include/Wt/Dbo/collection_impl.h:196:88: error: invalid initialization of non-const reference of type 'Wt::Dbo::collection::value_type& {aka bool&}' from an rvalue of type 'std::vector<bool, std::allocator >::reference {aka std::_Bit_reference}'
return const_cast<collection&>(collection*).manualModeInsertions()[posPastQuery*];
^
This is with a current git snapshot.
This of course breaks when you try to use a bool, other types are fine.
Kurt
Updated by Koen Deforche almost 11 years ago
- Status changed from New to InProgress
- Assignee set to Korneel Dumon
- Target version set to 3.3.2
Korneel,
This will require a template specialization for collection::iterator.
Koen
Updated by Korneel Dumon almost 11 years ago
- Status changed from InProgress to Resolved
Updated by Koen Deforche almost 11 years ago
- Status changed from Resolved to Closed