-/* Copyright (c) 2012-2018. The SimGrid Team.
+/* Copyright (c) 2012-2020. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
/** @brief Merge two answers together, only keeping the best nodes
* @param source the source of the nodes to add
*/
-unsigned int Answer::merge(Answer* source)
+unsigned int Answer::merge(const Answer* source)
{
if (this == source)
return 0;
/** @brief Adds the content of a bucket unsigned into a answer object.
* @param bucket the bucket we have to had unsigned into
*/
-void Answer::addBucket(Bucket* bucket)
+void Answer::addBucket(const Bucket* bucket)
{
xbt_assert((bucket != nullptr), "Provided a NULL bucket");