lighttransport / nanort

NanoRT, single header only modern ray tracing kernel.
MIT License
1.07k stars 89 forks source link

Make it compilable with C++20 #82

Closed kenichiice closed 1 year ago

kenichiice commented 1 year ago

The following code will trigger a compile error when using C++20.

#include "nanort.h"

int main()
{
  nanort::StackVector<double, 100> v;
}

This is because 'nanort.h' uses the following, which have been removed in C++20 (deprecated since C++17).

This PR make changes to avoid using there.

This will allow the code shown at the beginning to compile using C++20.

syoyo commented 1 year ago

Awesome! Thanks!