Revision 0d8e0cb0d00933663e03db3daee3172ca79d5d23 authored by Dmitry Yu. Naumov on 16 March 2021, 07:02:19 UTC, committed by Dmitry Yu. Naumov on 16 March 2021, 07:02:19 UTC
Replace boost::any with std::any.

See merge request ogs/ogs!3517
2 parent s c9c4b01 + 8c62eaa
Raw File
Location.cpp
/**
 * \file
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#include "Location.h"
#include <ostream>

namespace MeshLib
{

std::ostream& operator<<(std::ostream& os, MeshItemType const& t)
{
    switch (t)
    {
    case MeshItemType::Node: return os << "N";
    case MeshItemType::Edge: return os << "E";
    case MeshItemType::Face: return os << "F";
    case MeshItemType::Cell: return os << "C";
    case MeshItemType::IntegrationPoint: return os << "I";
    };
    return os;
}

std::ostream& operator<<(std::ostream& os, Location const& l)
{
    return os << "(" << l.mesh_id
        << ", " << l.item_type
        << ", " << l.item_id
        << ")";
}

}   // namespace MeshLib
back to top