You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: conversion from ‘std::vector<int, std::allocator<int> >’ to non-scalar type ‘AlignedIntVector {aka std::vector<int, boost::alignment::aligned_allocator<int, 32ul> >}’ requested
fplus::transform([](auto x) { return x*x; }, aligned_xs);
clang++:
error: no viable conversion from 'vector<[...],
std::allocator<int>>' to 'vector<[...],
boost::alignment::aligned_allocator<int, 32>>'
AlignedIntVector aligned_ys =
^
The current workaround is to provide the output container explicitly. fplus::transform_convert can be used for convenience:
Minimal example:
internal::same_cont_new_t
can not handle this:g++
:clang++
:The current workaround is to provide the output container explicitly.
fplus::transform_convert
can be used for convenience:But since not only
fplus::transform
is affected, it would be very cool ifinternal::same_cont_new_t
would support that.The text was updated successfully, but these errors were encountered: