Showing only posts tagged derp. Show all posts.

Printf bit me

< 1 Minute Read.

Working on an Unreal Engine 4 project, I had a strage issue with their FString::Printf(format, args...) function (which is basically just calling _vsntprintf).

The final issue was that I was trying to build a SQL query along the lines of INSERT INTO Table(a, b …

Live to learn

Just spent a whole hour on a stupid problem:

//... (Storeable is an interface)

          HashMap<String, Class<? extends Storeable>> types = new HashMap<String, Class<? extends Storeable>>();

          //... (object is an instance of a class that implements Storeable)

          types.add(object.getTag(), object.getClass());

          //...

Thought it was a problem with the Generics, but …

Posted on in tumblr. updated archived Tags: java, derp.