Question: I'm currently using clang under windows, but only to generate an AST from my headers as a code generation tool.
Now I'm facing a problem with unique\_ptr not being parsed which should be solved by telling clang to use either libc++ or libstdc++ in the command line arguments. But I am on windows.

I know libc++ hasn't completely been ported to windows yet, so I'm now considering listdc++.

But the thing is : I'm only parsing headers to an AST, I really only need clang to get the correct header to correctly parse the references to std::unique\_ptr in my file. It shouldn't be much more than downloading the source and telling clang where to find the right headers, right ? But I don't know how to do that, clang is quite obscure.

Do you think that is possible to achieve and how ?

Answer: 
In your case you should not use a *static* method. In OOP you want to use static methods when they conceptually don't belong to an instance of something, or when you don't need access to instance members.

Saying that, you should use an instance method (without the *static* keyword):

```
public function is_active()
{
    return empty($this->confirmation_token);
}

```

Then you will call that method doing the following:

```
$user = User::first(); // or any logic to find a user.
$active = $user->is_active();

```

---

The fact that you need access to an instance member: `$this->confirmation_token` clearly indicates you that you don't need a *static* method, but an *instance* method.

Happy coding!
It seems to me like you are looking to set a session. However don't use a token to check the user. If you are using the built in token it will always return true since this is set even for a user who has just come to the website. You will most likely want to set something like username with

```
 Session::put('username', 'test');

```

then you can check for a active user with 

```
Session::get('username');

```

I would suggest looking at <http://laravel.com/docs/security> this as well since you will most likely want to implement something a little more robust down the rode depending on the information your app will be holding.