I am currently playing around with openscenegraph and it uses its own smart pointer. But I want to use the std c++11 smart pointer.
now this is the working example code
osg::ref_ptr<osg::Uniform> SineUniform = new osg::Uniform( "Sine", 0.0f );
but when I do something like this
std::unique_ptr<osg::Uniform> SineUniform = new osg::Uniform( "Sine", 0.0f );
Then I get the following error message
error: conversion from 'osg::Uniform*' to non-scalar type 'std::unique_ptr' requested
Any idea what is going on? Are there some requirements for smart pointers?