mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
MolAlign: brace-init BestAlignmentParams in wrapper (#9042)
BestAlignmentParams is an aggregate; paren-init (T(...)) is rejected by Apple Clang (Xcode) and only works on some compilers.
Use brace-init (T{...}) for portable initialization.
This commit is contained in:
committed by
greg landrum
parent
04901e7824
commit
2f26e34c25
@@ -34,9 +34,9 @@ struct pyBestAlignmentParams : public BestAlignmentParams {
|
||||
pyBestAlignmentParams(int maxMatches_, bool symmetrizeTerminalGroups_,
|
||||
bool ignoreHs_, int numThreads_, python::object map_,
|
||||
python::object weights_)
|
||||
: BestAlignmentParams(maxMatches_, symmetrizeTerminalGroups_, ignoreHs_,
|
||||
: BestAlignmentParams{maxMatches_, symmetrizeTerminalGroups_, ignoreHs_,
|
||||
numThreads_, std::vector<MatchVectType>(),
|
||||
nullptr) {
|
||||
nullptr} {
|
||||
unsigned int nAtms = 0;
|
||||
if (map_ != python::object()) {
|
||||
map = translateAtomMapSeq(map_);
|
||||
|
||||
Reference in New Issue
Block a user