3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 13:53:40 +01:00

minor correction for linux

- vector on C++14 has explicit default (until C++14 apparently)
  it is a small difference between libc++ and gnu libstdC++
This commit is contained in:
Olivier Parcollet 2014-05-11 21:54:46 +02:00
parent e32602180c
commit a9bcc33c7e
2 changed files with 2 additions and 3 deletions

View File

@ -202,8 +202,7 @@ def make_gf( py_type, c_tag, is_complex_data = True, is_im = False) :
arithmetic = ("algebra",data_type) arithmetic = ("algebra",data_type)
) )
g.add_constructor(signature = "(gf_mesh<%s> mesh, mini_vector<size_t,2> shape, std::vector<std::vector<std::string>> indices = {}, std::string name = "")"%c_tag, g.add_constructor(signature = "(gf_mesh<%s> mesh, mini_vector<size_t,2> shape, std::vector<std::vector<std::string>> indices = std::vector<std::vector<std::string>>{}, std::string name = "")"%c_tag, python_precall = "pytriqs.gf.local._gf_%s.init"%c_tag)
python_precall = "pytriqs.gf.local._gf_%s.init"%c_tag)
g.add_method_copy() g.add_method_copy()
g.add_method_copy_from() g.add_method_copy_from()

View File

@ -94,7 +94,7 @@ namespace gfs {
std::vector<std::string> operator[](int i) const { std::vector<std::string> operator[](int i) const {
if (is_empty()) if (is_empty())
return {}; return std::vector<std::string> {};
else else
return ind[i]; return ind[i];
} }