Skip to content
Snippets Groups Projects
Commit 5ce89f6b authored by Nils Kohl's avatar Nils Kohl :full_moon_with_face:
Browse files

Replaced boost::shared_array with std::unique_ptr.

Note: this could also be done with std::shared_ptr but would require
a custom deleter or std::default_delete for array types
(see also: https://stackoverflow.com/a/13062069).

Also, std::unique_ptr supports operator[] for array types.
parent 0f527d58
Branches
Tags
No related merge requests found
......@@ -22,8 +22,8 @@
#pragma once
#include "Parser.h"
#include <boost/shared_array.hpp>
#include <memory>
namespace walberla {
namespace math {
......@@ -39,7 +39,7 @@ public:
inline bool symbolExists(const std::string & symbol) const { return parser_[0].symbolExists(symbol); }
private:
boost::shared_array<FunctionParser> parser_;
std::unique_ptr< FunctionParser[] > parser_;
#ifndef NDEBUG
int num_parsers_;
#endif
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment