| 95 | |
| 96 | template<typename B, typename D, typename ...Arg> |
| 97 | inline std::unique_ptr<B> make_unique(Arg && ... arg) |
| 98 | { |
| 99 | #ifdef CHAISCRIPT_USE_STD_MAKE_SHARED |
| 100 | return std::make_unique<D>(std::forward<Arg>(arg)...); |
| 101 | #else |
| 102 | return std::unique_ptr<B>(static_cast<B*>(new D(std::forward<Arg>(arg)...))); |
| 103 | #endif |
| 104 | } |
| 105 | |
| 106 | struct Build_Info { |
| 107 | static int version_major() |
nothing calls this directly
no outgoing calls
no test coverage detected