File src/cmds/LogCmd.cpp changed (mode: 100644) (index 85c8689..84f71f8) |
15 |
15 |
// You should have received a copy of the GNU General Public License |
// You should have received a copy of the GNU General Public License |
16 |
16 |
// along with dit. If not, see <http://www.gnu.org/licenses/>. |
// along with dit. If not, see <http://www.gnu.org/licenses/>. |
17 |
17 |
|
|
|
18 |
|
#include <boost/multi_array.hpp> |
|
19 |
|
|
18 |
20 |
#include <cstdlib> |
#include <cstdlib> |
19 |
21 |
|
|
20 |
22 |
#include <deque> |
#include <deque> |
|
... |
... |
LogCmd::run(Project &project, const std::vector<std::string> &args) |
130 |
132 |
static std::string |
static std::string |
131 |
133 |
diff(const std::vector<std::string> &f, const std::vector<std::string> &s) |
diff(const std::vector<std::string> &f, const std::vector<std::string> &s) |
132 |
134 |
{ |
{ |
133 |
|
int d[f.size() + 1][s.size() + 1]; |
|
|
135 |
|
boost::multi_array<int, 2> d(boost::extents[f.size() + 1][s.size() + 1]); |
134 |
136 |
|
|
135 |
137 |
// Modified edit distance finding. |
// Modified edit distance finding. |
136 |
138 |
using size_type = std::vector<std::string>::size_type; |
using size_type = std::vector<std::string>::size_type; |