Intel-Media-SDK / MediaSDK

The Intel® Media SDK
MIT License
931 stars 458 forks source link

Fix build with gcc 12 #2941

Closed dbermond closed 2 years ago

dbermond commented 2 years ago

gcc 12 changed header dependencies. It now requires to explicitly include the <memory> C++ header for using std::unique_ptr.

Otherwise, the following build error will occur: ‘unique_ptr’ in namespace ‘std’ does not name a template type.

See documentation about porting to gcc 12.

Fixes #2940