Giter VIP home page Giter VIP logo

Comments (4)

AshleyRoll avatar AshleyRoll commented on May 22, 2024

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.

jwellbelove avatar jwellbelove commented on May 22, 2024

from etl.

AshleyRoll avatar AshleyRoll commented on May 22, 2024

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.

jwellbelove avatar jwellbelove commented on May 22, 2024

from etl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.