boostorg / qvm

Boost Quaternions, Vectors, Matrices library
Boost Software License 1.0
81 stars 45 forks source link

no support for std::array #38

Closed octopus-prime closed 2 years ago

octopus-prime commented 2 years ago

Broken:

    std::array<float, 4> v = {1, 2, 3, 4};

    boost::qvm::vref(v); --> error: no type named ‘type’ in ‘struct boost::enable_if_c<false, boost::qvm::qvm_detail::vref_<std::array<float, 4> >&>’

    boost::qvm::vref(v.data()); --> error: no type named ‘type’ in ‘struct boost::enable_if_c<false, boost::qvm::qvm_detail::vref_<float*>&>’
zajo commented 2 years ago

Thanks. Fixed on develop.