Giter Club home page Giter Club logo

Comments (6)

dalerank avatar dalerank commented on May 18, 2024

can u fix it with pr?

from nanogui-sdl.

ville-v avatar ville-v commented on May 18, 2024

I don't know what this class does (how to replace it) and the original nanogui does not have this file. So I used another GUI library instead.

from nanogui-sdl.

Soldy avatar Soldy commented on May 18, 2024

Can I help ?
https://github.com/lighttransport/nanort/blob/master/nanort.h

from nanogui-sdl.

dalerank avatar dalerank commented on May 18, 2024

Sure, is it new version?

from nanogui-sdl.

Soldy avatar Soldy commented on May 18, 2024

Sure, is it new version?

Something like a new version with an other problem:
https://github.com/lighttransport/nanort/blob/0bfd8fa97e979b3636136840cbe6cc70b8bc9f08/nanort.h#L131

 class StackAllocator : public std::allocator<T> {

https://en.cppreference.com/w/cpp/memory/allocator

So isn't work with c++20

But is there anyway.

class StackAllocator : public std::allocator<T> {

from nanogui-sdl.

ville-v avatar ville-v commented on May 18, 2024

I think std::allocator_traits can replace std::allocator. Nanogui-sdl uses std::allocator in some other places and replacing those was recommended by Visual Studio.

https://en.cppreference.com/w/cpp/memory/allocator_traits

According to this, std::allocator is removed because it is (at least partially) duplicate of std::allocator_traits: https://stackoverflow.com/questions/39414610/why-are-are-stdallocators-construct-and-destroy-functions-deprecated-in-c17

from nanogui-sdl.

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.