From: Kirk, B. (JSC-EG311) <ben...@na...> - 2012-11-02 01:21:05
|
On Nov 1, 2012, at 5:20 PM, Roy Stogner <roy...@ic...> wrote: > > On Thu, 1 Nov 2012, Derek Gaston wrote: > >> On Thu, Nov 1, 2012 at 3:10 PM, Roy Stogner <roy...@ic...> wrote: >> I'd like to see the compile error if it's not too much trouble, though. >> >> /Users/gastdr/projects/herd_trunk/devel/moose/src/utils/GatherNearbyElements.C:616: error: no matching function for call to ‘receive(const unsigned int&, >> std::vector<libMesh::Node::PackedNode, std::allocator<libMesh::Node::PackedNode> >&, libMesh::Parallel::DataType&, libMesh::Parallel::MessageTag&)’ > > Yup, I missed shim functions for receive-with-a-DataType-arg. Both > the shim functions and the DataType argument versions are going to be > deprecated eventually, but that's no reason to break everyone's stuff > right now. Roy - I'd like to have a default constructor for the MessageTag so I can create a vector of them. I have a use case where I need a number of tags, and this is the easiest way to store them so I can then loop through the tags and receive from any source but in a predictable order on the content. I was thinking a static MessageTag::invalid_tag = std::numeric_limits<int>::min() or something like that, but wasn't sure where to initialize it with this being header-only now. What's your thought, and would you mind adding a default constructor for this class? -Ben |