Boost logo

Boost :

From: Mike Morearty (mike_at_[hidden])
Date: 2000-01-11 13:34:15


Argh! eGroups.com messed up the source code in my previous message.
My email client (Netscape Messenger) sent it out correctly, with
greater-than and less-than characters properly escaped, but eGroups
changed it when displaying it as a page on their site.

Anyway, here's the correct version of the "get()" function I posted.
Hopefully this one will show up correctly, since this is a plain-text
message; we'll see!

        template <> get<user_execute>::operator user_execute::value_typ
e() const
        {
            std::string name(*m_it);
            std::string::size_type dot = name.find_last_of('.');

            if (dot == std::string::npos)
                return false;
            else
                {
                    std::string ext(name.substr(dot));
                    return ext == ".exe" || ext == ".com" || ext ==
".bat";
                }
        }


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk