3
0
mirror of https://github.com/triqs/dft_tools synced 2024-10-31 19:23:45 +01:00
I have no clue why this is a pb, and I can not reproduce it,
but the change is correct and trivial so I merge this pull request.
This commit is contained in:
Olivier Parcollet 2013-09-08 16:54:22 +02:00
parent b1f61b2f7a
commit 4413c6a588

View File

@ -56,7 +56,7 @@ namespace triqs { namespace arrays { namespace indexmaps { namespace cuboid {
domain_t (n_uple lengths):lengths_(std::move(lengths)) {} domain_t (n_uple lengths):lengths_(std::move(lengths)) {}
domain_t (mini_vector<int,Rank> const & lengths):lengths_(lengths) {} domain_t (mini_vector<int,Rank> const & lengths):lengths_(lengths) {}
domain_t (std::vector<std::size_t> const & l):lengths_() { domain_t (std::vector<std::size_t> const & l):lengths_() {
if (!(l.size()==rank)) TRIQS_RUNTIME_ERROR << "cuboid domain_t construction : vector size incorrect : got "<<l.size() <<" while expected "<< rank; if (!(l.size()==Rank)) TRIQS_RUNTIME_ERROR << "cuboid domain_t construction : vector size incorrect : got "<<l.size() <<" while expected "<< Rank;
lengths_ = n_uple(l); lengths_ = n_uple(l);
} }
template <typename ... T> domain_t(size_t i0, T... t): lengths_(i0, t...){} template <typename ... T> domain_t(size_t i0, T... t): lengths_(i0, t...){}