<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/78607>78607</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [C++23] unable to create map/unordered_map with value unique_ptr
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Bot-Kerem
      </td>
    </tr>
</table>

<pre>
    https://godbolt.org/z/nbhesYYTz

`std::unordered_map<std::size_t, std::unique_ptr<some_data>> map;`

```
In file included from <source>:3:
In file included from /opt/compiler-explorer/gcc-snapshot/lib/gcc/x86_64-linux-gnu/14.0.1/../../../../include/c++/14.0.1/memory:78:
In file included from /opt/compiler-explorer/gcc-snapshot/lib/gcc/x86_64-linux-gnu/14.0.1/../../../../include/c++/14.0.1/bits/unique_ptr.h:43:
In file included from /opt/compiler-explorer/gcc-snapshot/lib/gcc/x86_64-linux-gnu/14.0.1/../../../../include/c++/14.0.1/ostream:43:
/opt/compiler-explorer/gcc-snapshot/lib/gcc/x86_64-linux-gnu/14.0.1/../../../../include/c++/14.0.1/format:437:15: error: alias template '_Utf32_view' requires template arguments; argument deduction only allowed for class templates
  437 | _Utf32_view __uv(ranges::subrange(__first, __last));
      | ^
/opt/compiler-explorer/gcc-snapshot/lib/gcc/x86_64-linux-gnu/14.0.1/../../../../include/c++/14.0.1/bits/unicode.h:586:5: note: template is declared here
  586 |     using _Utf32_view = _Utf_view<char32_t, _View>;
```

other compilers or c++20 don't give any errors
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUVUuP4ygQ_jWVC0pEwM9DDkl3W1rtdXelOVlgKjYrDB4e6cevX-GkOz290pxnLFR2mXp_BSVC0KNFPEB5gvJxI1KcnD-cXNz-iR7njXTq9TDFuATgR2AdsG50SjoTd86PwLo3YJ2VE4Zv3_56A_oI9HijFQ1RZS1-TNZ5hR5VP4sF-MPHRtBv2EdgD-STrP6esF-iz4Juxl6JKIA_AX8iq_oJKvrF022t7B-WnLVBou1gkkJFzt7NZDWW_ICrpSPPzn4mzjq3RGDd4OZFG_RbfFmM8-hzBYZhG6xYwuSyiNHy-hNY99JUfVVsjbbpZTvaBKzbFzu62wPrdrv_k5vX7AjYaV13hRln51-BH-vmdwhX6hiAdXcAdxPwY_FblNqF6FHMP8b7S0R2dn4WcQ2sBn7cl8CPBL13Pn8Io0UgEefFiIgEWN3_Hc-c9ReNz8Bq4vF70h4_yQg_phltDMBPHwxRqNIQtbPEWfNKhDHuOSPkPBmMCHf9cK0NIQWvCdQP5JND0vfpAqzxwo4Ybkc8yZUF1vT9WfuwHve-NyJ_tXnx07vN_GSbUD79QhDcG3twCteuLpsq0wyBdRHz-6PAOhCFgxEeFZnQ43tyZVOtyeUnBW3HH0oH_HHlr8jxh2ESnrPr5dj_s_57-qjUlyvvSl2c0JP3QgWSobsmwyhRzgKrIxn1BYmwr9cWCht14KrlrdjgYV_TsqK0LprNdGiZlKI9t5KdWzqgxKouZNVKxYu2LOWw0QdGWUH3-2Zfly0tdxXlqmqoxKaiHFFBQXEW2uyMucx5Wmx0CAkPdVPRemOERBPWucOYxWeybgJjeQz5Q9bZyjQGKKjRIYa7laijWQfWwy05DuUjSVZIgyQ6MnjMKORRkTH7NHnIs44TuQiTkNxvqU3y5uuI03FKcje4ObeVuby_tot3_-KQm20NN3fFms5_AQAA__8uuTTS">