source: filezilla/trunk/fuentes/m4/map_emplace.m4 @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 4 years ago

First release to xenial

File size: 460 bytes
Line 
1dnl Checks whether std::map has emplace
2
3AC_DEFUN([FZ_CHECK_MAP_EMPLACE], [
4
5  AC_LANG_PUSH(C++)
6
7  AC_MSG_CHECKING([whether std::map has emplace])
8  AC_COMPILE_IFELSE([
9    AC_LANG_PROGRAM([[
10        #include <map>
11      ]], [[
12        std::map<int, int> m;
13        m.emplace(std::make_pair(2, 3));
14        return 0;
15      ]])
16    ], [
17      AC_MSG_RESULT([yes])
18    ], [
19      AC_MSG_RESULT([no])
20      AC_MSG_ERROR([std::map lacks emplace])
21    ])
22
23  AC_LANG_POP(C++)
24])
Note: See TracBrowser for help on using the repository browser.