fix implicit conversion from shared_ptr to bool

C++11 does not approve the implicit conversion, see http://stackoverflow.com/questions/7580009/gcc-error-cannot-convert-const-shared-ptr-to-bool-in-return
fix implicit conversion from shared_ptr to bool

C++11 does not approve the implicit conversion, see http://stackoverflow.com/questions/7580009/gcc-error-cannot-convert-const-shared-ptr-to-bool-in-return
Merge pull request #34 from tjadevries/master

Fix implicit conversion from shared_ptr to bool
scripting: fixup parsing of mixed program/function and statement scripts.

This patch allows to query the programgraphparser if it has seen any valid input at all.
Also the commonparser was slightly rewritten for parsing identifiers. Some lexeme_d
directives were ignored because they were stored in a rule_t instead of a lexeme_rule_t

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
useorocos: fixed recursive orocos_find_package() for rosbuild packages

This is a regression of 5c14c5d6291375d9e790a92d01a766d4bdc9b2b9.

Signed-off-by: Johannes Meyer <johannes@intermodalics.eu>