Code Monkey home page Code Monkey logo

Comments (4)

Xaymar avatar Xaymar commented on September 17, 2024

It seems that _Ptr_base is MSVC only, that's easy to fix as those should be pointing at _Ref_count_obj anyway. This is required to enable std::shared_ptr to access the constructor and destructors, which are protected or private. But I don't know what _Ref_count_obj is in Clang, there should be a similar class managing the actual memory for std::shared_ptr.

from obs-streamfx.

PatTheMav avatar PatTheMav commented on September 17, 2024

I wish I could help you with macOS support here, but my C++-fu is rudimental at best. Dunno if this StackOverflow thread has the answer you need (as I'm getting dizzy reading stuff like return ::std::make_shared<A>(this_is_private{0},::std::forward<T>(args)...); 🙈), but maybe it's helpful:

https://stackoverflow.com/questions/8147027/how-do-i-call-stdmake-shared-on-a-class-with-only-protected-or-private-const

from obs-streamfx.

Xaymar avatar Xaymar commented on September 17, 2024

I might have to make the constructor and destructor public, as there seems to be no proper way to do this without other code or code that doesn't work right across different compilers.

from obs-streamfx.

Xaymar avatar Xaymar commented on September 17, 2024

@yokem55 @PatTheMav Building on Linux inside an obs-studio build will now work fine.

from obs-streamfx.

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.