Skip to content

Commit 5d92a5f

Browse files
committed
Update c++ check in configure to detect some sort of c++11 capability
1 parent 71f3cce commit 5d92a5f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

configure

+3-2
Original file line numberDiff line numberDiff line change
@@ -448,14 +448,15 @@ public:
448448
int m;
449449
std::vector<int> v;
450450
Abc() : m(42) { }
451+
Abc(Abc&& other) : m(std::move(other.m)), v(std::move(other.v)) { }
451452
};
452453
453454
int main(int argc, char** argv) {
454-
Abc abc;
455+
auto abc = Abc{};
455456
return abc.m - 42;
456457
}
457458
EOF
458-
$CXX tmp.cpp 2>/dev/null
459+
$CXX -std=c++11 tmp.cpp 2>/dev/null
459460
if test -f "./a.out"; then
460461
./a.out >/dev/null
461462
echo "${ECHO_T}$CXX"

0 commit comments

Comments
 (0)