Commit 456d231f authored by Kenneth Leiter's avatar Kenneth Leiter

COMP: Get things working again with Intel compiler.

Remove some warnings related to hidden functions.
parent 158f4ab5
......@@ -60,6 +60,8 @@ public:
unsigned int getNumberNodes() const;
using XdmfSparseMatrix::insert;
void traverse(const shared_ptr<XdmfBaseVisitor> visitor);
protected:
......
......@@ -83,6 +83,7 @@ public:
*/
void setChunkSize(const unsigned int chunkSize);
using XdmfHeavyDataWriter::visit;
virtual void visit(XdmfArray & array,
const shared_ptr<XdmfBaseVisitor> visitor);
......
......@@ -141,6 +141,7 @@ public:
* @param array an XdmfArray to write to heavy data.
* @param visitor a smart pointer to this visitor --- aids in grid traversal.
*/
using XdmfVisitor::visit;
virtual void visit(XdmfArray & array,
const shared_ptr<XdmfBaseVisitor> visitor) = 0;
......
......@@ -35,11 +35,12 @@ using boost::shared_dynamic_cast;
#else
using boost::dynamic_pointer_cast;
template <typename T, typename U>
shared_ptr<T> shared_dynamic_cast(shared_ptr<U> const & r)
{
return dynamic_pointer_cast<T>(r);
typedef typename shared_ptr<T>::element_type E;
E * p = dynamic_cast< E* >( r.get() );
return p? shared_ptr<T>( r, p ): shared_ptr<T>();
}
#endif /* HAVE_BOOST_SHARED_DYNAMIC_CAST */
......
......@@ -64,9 +64,9 @@ int main(int, char **)
assert(dimensionsArray->getSize() == 24);
std::vector<unsigned int> readDimensions = dimensionsArray->getDimensions();
assert(readDimensions.size() == 3);
assert(readDimensions[0] = 2);
assert(readDimensions[1] = 3);
assert(readDimensions[2] = 4);
assert(readDimensions[0] == 2);
assert(readDimensions[1] == 3);
assert(readDimensions[2] == 4);
shared_ptr<XdmfHDF5Writer> largeArrayWriter =
XdmfHDF5Writer::New("testLargeArray.h5");
......
......@@ -30,6 +30,8 @@ public:
return mCount;
}
using XdmfVisitor::visit;
void
visit(XdmfArray & array,
const shared_ptr<XdmfBaseVisitor>)
......
Markdown is supported
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