mirror of
https://github.com/triqs/dft_tools
synced 2024-10-31 19:23:45 +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:
parent
e32602180c
commit
a9bcc33c7e
@ -202,8 +202,7 @@ def make_gf( py_type, c_tag, is_complex_data = True, is_im = False) :
|
||||
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,
|
||||
python_precall = "pytriqs.gf.local._gf_%s.init"%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)
|
||||
|
||||
g.add_method_copy()
|
||||
g.add_method_copy_from()
|
||||
|
@ -94,7 +94,7 @@ namespace gfs {
|
||||
|
||||
std::vector<std::string> operator[](int i) const {
|
||||
if (is_empty())
|
||||
return {};
|
||||
return std::vector<std::string> {};
|
||||
else
|
||||
return ind[i];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user