| # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| from waflib.Configure import conf |
| std::string s = std::to_string(0); |
| s = std::to_string(0ull); |
| s = std::to_string(0.0f); |
| s = std::to_string(0.0l); |
| def check_std_to_string(self): |
| if self.check_cxx(msg='Checking for std::to_string', |
| features='cxx', mandatory=False): |
| self.define('HAVE_STD_TO_STRING', 1) |
| VECTOR_INSERT_ERASE_CONST_ITERATOR = ''' |
| std::vector<int>::const_iterator it = v.cbegin(); |
| def check_vector_const_iterators(self): |
| if self.check_cxx(msg='Checking for std::vector::insert with const_iterator', |
| fragment=VECTOR_INSERT_ERASE_CONST_ITERATOR, |
| features='cxx', mandatory=False): |
| self.define('HAVE_VECTOR_INSERT_ERASE_CONST_ITERATOR', 1) |
| conf.check_std_to_string() |
| conf.check_vector_const_iterators() |