Merge pull request #184 from rkskvk/develop

Static_cast tempplate changes and correct the condition check in all C++...
Added support for discard_data in AMP device_vector + various fixes
Merge pull request #185 from avinashcpandey/develop

Added support for discard_data in AMP device_vector + various fixes