Giter VIP home page Giter VIP logo

Comments (6)

TommyKaneko avatar TommyKaneko commented on September 14, 2024

Yes, I agree. There was a switch towards new and delete as @jiminy-billy-bob reported compiler issues on Visual Studio. @jiminy-billy-bob - perhaps you could change your compiler to C++11 compatible version and we can fix this?

The commit that made this change was 903f09e

Will fix throughout the wrapper.

from sketchup-api-c-wrapper.

thomthom avatar thomthom commented on September 14, 2024

There was a switch towards new and delete as @jiminy-billy-bob reported compiler issues on Visual Studio.

What issues was that? Is that conversation logged in the issue tracker?

The only thing that is C++11 in my previous examples are std::transform. Avoiding new and delete is doable without C++11. However, C++ is so much better and easier to work with once you utilize C++11. I would not start any new projects these days without at least C++11 support.

from sketchup-api-c-wrapper.

TommyKaneko avatar TommyKaneko commented on September 14, 2024

What issues was that? Is that conversation logged in the issue tracker?
No, not logged anywhere where I can see. I was still getting used to Github at that point. In hindsight, I can see that my original implementation was not correct either. Will be my next commit.

from sketchup-api-c-wrapper.

jiminy-billy-bob avatar jiminy-billy-bob commented on September 14, 2024

The conversation is here : #2

from sketchup-api-c-wrapper.

thomthom avatar thomthom commented on September 14, 2024

I see - the message doesn't relate to C++11 though. It's simply about non-standard C++ extensions that allowed variable C-type arrays.

With modern C++ you would typically use std::vector for variable length continuous data, and std::array for fixed length arrays. The benefit of std::array for fixed length arrays over C style arrays is that they are compatible with the STL containers.

from sketchup-api-c-wrapper.

TommyKaneko avatar TommyKaneko commented on September 14, 2024

Issue resolved with ffc704c

from sketchup-api-c-wrapper.

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.