Boost.Units и оператор присваивания с префиксами

Я пытаюсь начать работу с Boost.Units и сталкиваюсь со следующей проблемой:

#include <boost/units/quantity.hpp>
#include <boost/units/systems/si/prefixes.hpp>
#include <boost/units/systems/si/length.hpp>
using namespace boost::units::si;
using namespace boost::units;

int main()
{
quantity<length> a(10.0 * centi * meter); //compiles fine
quantity<length> b = 10.0 * centi * meter; //compiler error
}

Ошибка из-за шаблонного характера библиотеки очень длинная: error: conversion from 'boost::units::multiply_typeof_helper<boost::units::quantity

Это дизайн или я что-то упустил?

0

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector