File: no-reference.cpp

package info (click to toggle)
mapbox-variant 1.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,644 kB
  • sloc: cpp: 31,068; ansic: 959; python: 424; makefile: 144; objc: 59; sh: 36
file content (8 lines) | stat: -rw-r--r-- 172 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
// @EXPECTED: Variant can not hold reference types

#include <mapbox/variant.hpp>

int main()
{
    mapbox::util::variant<double, int&, long> x{mapbox::util::no_init()};
}