Comments (4)
As per the pointer to class issue with C++11, I rewrote this test and I'm still getting the errors.
class AClass
{
public: int val;
};
AClass t[] = { 1, 2 };
etl::vector<AClass&, 5> v;
v.assign(std::begin(t), std::end(t));
results in
1>c:\ash\git\r4\externalrepos\etl\src\ivector.h(66): error C2528: 'pointer': pointer to reference is illegal
1> c:\ash\git\r4\externalrepos\etl\src\vector.h(59): note: see reference to class template instantiation 'etl::ivector<T>' being compiled
1> with
1> [
1> T=ConfigTests::ConfigLoadTests::bar::AClass &
1> ]
1> c:\ash\git\r4\firmware\pic32\lib\_unittests\configtests\configloadtests.cpp(130): note: see reference to class template instantiation 'etl::vector<ConfigTests::ConfigLoadTests::bar::AClass &,5>' being compiled
1>c:\ash\git\r4\externalrepos\etl\src\ivector.h(67): error C2528: 'const_pointer': pointer to reference is illegal
1>c:\ash\git\r4\externalrepos\etl\src\ivector.h(68): error C2528: 'iterator': pointer to reference is illegal
1>c:\ash\git\r4\externalrepos\etl\src\ivector.h(69): error C2528: 'const_iterator': pointer to reference is illegal
1>c:\ash\git\r4\externalrepos\etl\src\ivector.h(70): error C2528: '<template-parameter>': pointer to reference is illegal
1>c:\ash\git\r4\externalrepos\etl\src\ivector.h(71): error C2528: '<template-parameter>': pointer to reference is illegal
1>c:\ash\git\r4\externalrepos\etl\src\ivector.h(73): error C2528: '<template-parameter>': pointer to reference is illegal
1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\xutility(619): error C2528: '<template-parameter>': pointer to reference is illegal
1> c:\ash\git\r4\externalrepos\etl\src\ivector.h(73): note: see reference to class template instantiation 'std::iterator_traits<ConfigTests::ConfigLoadTests::bar::AClass &(*)>' being compiled
1>c:\ash\git\r4\externalrepos\etl\src\ivector.h(73): error C2039: 'difference_type': is not a member of 'std::iterator_traits<ConfigTests::ConfigLoadTests::bar::AClass &(*)>'
1> c:\ash\git\r4\externalrepos\etl\src\ivector.h(73): note: see declaration of 'std::iterator_traits<ConfigTests::ConfigLoadTests::bar::AClass &(*)>'
1>c:\ash\git\r4\externalrepos\etl\src\ivector.h(73): error C3646: 'difference_type': unknown override specifier
1>c:\ash\git\r4\externalrepos\etl\src\ivector.h(73): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ash\git\r4\externalrepos\etl\src\ivector.h(759): error C2528: 'p_buffer': pointer to reference is illegal
1>c:\ash\git\r4\externalrepos\etl\src\ivector.h(785): error C2528: 'p_buffer': pointer to reference is illegal
from etl.
from etl.
Hi John,
Wow, sorry. How did I miss that.. that's embarrassing. Of course as there is no sensible initialisation.. doh!
Maybe I should not be reporting bugs until I get a clear head :)
My bad!
Ash.
from etl.
from etl.
Related Issues (20)
- cyclic_value first/last methods HOT 2
- etl::variant is missing comparison operators HOT 2
- `etl::fsm` `receive` function can call `p_state->process_event()` also when `p_state` is nullptr HOT 5
- Any plans for `shared_ptr`, `make_unique`, etc? HOT 4
- feature request: callback on timer functions to handle changes in the time list HOT 4
- Allow removal of a node from an etl::intrusive_list HOT 1
- Side effects concern etl::string HOT 6
- ETL Functional How to use? HOT 2
- optimize find_first_not_of and find_last_not_of on string_view HOT 1
- Error using etl::optional::emplace with objects with const members HOT 1
- feature request: allow use of etl::mutex on non-OS targets HOT 1
- Add etl::partition and etl::nth_element algorithms HOT 1
- Feature request: support for moving the FSM HOT 12
- Bug: queue move-assignment is not compiling HOT 1
- [BUG] list_ext does not respect the alignment of generic_pool HOT 2
- Add the ability to move _ext containers
- how to combine message_broker with message_bus HOT 3
- bitset_new.h throws warnings for GHS compiler
- Pool with RAII
- On STM32 gcc fails compile callback_timer_atomic (but compiles queue_spsc_atomic) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from etl.