blob: 32ba1570f45ea65706c61a1393745054ef0d8dc3 [file]
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# Lucene++ 3.0.9 uses pointer member access on reference parameters in these templates.
# Apple Clang rejects the definitions while parsing Lucene.h via LuceneInc.h, including
# when building the production library's precompiled headers, without any swap() calls.
diff --git a/include/lucene++/Collection.h b/include/lucene++/Collection.h
--- a/include/lucene++/Collection.h
+++ b/include/lucene++/Collection.h
@@ -167,7 +167,7 @@
}
void swap(this_type& other) {
- container.swap(other->container);
+ container.swap(other.container);
}
TYPE& operator[] (int32_t pos) {
diff --git a/include/lucene++/Set.h b/include/lucene++/Set.h
--- a/include/lucene++/Set.h
+++ b/include/lucene++/Set.h
@@ -108,7 +108,7 @@
}
void swap(this_type& other) {
- setContainer.swap(other->setContainer);
+ setContainer.swap(other.setContainer);
}
operator bool() const {