mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
fix another wrong logger call
This commit is contained in:
parent
45f93138dd
commit
1d37a82185
@ -309,8 +309,9 @@ namespace ngcore
|
|||||||
// Downcasting is only possible for our registered classes
|
// Downcasting is only possible for our registered classes
|
||||||
if(typeid(T) != typeid(*ptr))
|
if(typeid(T) != typeid(*ptr))
|
||||||
{
|
{
|
||||||
logger->debug("Typids are different: " + Demangle(typeid(T).name()) + " vs. " +
|
logger->debug("Typids are different: {} vs {}",
|
||||||
Demangle(typeid(*ptr).name()));
|
Demangle(typeid(T).name()),
|
||||||
|
Demangle(typeid(*ptr).name()));
|
||||||
if(!IsRegistered(Demangle(typeid(*ptr).name())))
|
if(!IsRegistered(Demangle(typeid(*ptr).name())))
|
||||||
throw Exception(std::string("Archive error: Polymorphic type ")
|
throw Exception(std::string("Archive error: Polymorphic type ")
|
||||||
+ Demangle(typeid(*ptr).name())
|
+ Demangle(typeid(*ptr).name())
|
||||||
@ -446,8 +447,8 @@ namespace ngcore
|
|||||||
// if the pointer is not found in the map create a new entry
|
// if the pointer is not found in the map create a new entry
|
||||||
if (pos == ptr2nr.end())
|
if (pos == ptr2nr.end())
|
||||||
{
|
{
|
||||||
logger->debug("Didn't find pointer, create new registry entry at " +
|
logger->debug("Didn't find pointer, create new registry entry at {}",
|
||||||
std::to_string(ptr_count));
|
ptr_count);
|
||||||
ptr2nr[reg_ptr] = ptr_count++;
|
ptr2nr[reg_ptr] = ptr_count++;
|
||||||
if(typeid(*p) == typeid(T))
|
if(typeid(*p) == typeid(T))
|
||||||
if (std::is_constructible<T>::value)
|
if (std::is_constructible<T>::value)
|
||||||
|
Loading…
Reference in New Issue
Block a user